Part Number Hot Search : 
00134 SMAJ78A 25043HR RGP10JH P4KA20A 13001 16F68 0ETTTS
Product Description
Full Text Search
 

To Download SAF-XC866L-4RRA Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  microcontrollers data sheet, v1.1, dec. 2006 xc866 8-bit single-chip microcontroller
edition 2006-12 published by infineon technologies ag, 81726 mnchen, germany ? infineon technologies ag 2006. all rights reserved. attention please! the information herein is given to describe certain components and shall not be considered as a guarantee of characteristics. terms of delivery and rights to technical change reserved. we hereby disclaim any and all warranties, including but not limited to warranties of non-infringement, regarding circuits, descriptions and charts stated herein. information for further information on technology, delivery terms and conditions and prices pl ease contact your nearest infineon technologies office ( www.infineon.com ). warnings due to technical requirements components may contain dangerous substances. for information on the types in question please contact your near est infineon technologies office. infineon technologies components may only be used in life-support devices or systems with the express written approval of infineon technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system, or to affect the safe ty or effectiveness of that device or system. life support devices or systems are intended to be implanted in the human body, or to support and/or maintain and sustain and/or protect human life. if they fail, it is reasonable to assume that the health of the user or other persons may be endangered.
microcontrollers data sheet, v1.1, dec. 2006 xc866 8-bit single-chip microcontroller
xc866 data sheet revision history: 2006-12 v1.1 previous version: v 0.1, 2005-01 v1.0, 2006-02 page subjects (major changes since last revision) 3 table 2 is updated for variant devices. 38 table 16 is updated for flash data retention and endurance targets. 58 section 3.8.1 is updated for the reco mmended external oscillator circuitry. 93 the adc inl, dnl, gain and offset are added. 103 table 43 is updated for on-chip oscillator characteristics. 104 tck clock rise time, tck clock fall time, tdo valid output from tck and tdo high impedance to valid output from tck are updated. 107 table 47 is added for thermal characteristics of the package. we listen to your comments any information within this document that you feel is wrong, unclear or missing at all? your feedback will help us to continuousl y improve the quality of this document. please send your proposal (including a reference to this document) to: mcdocu.comments@infineon.com
data sheet 1 v1.1, 2006-12 xc866 8-bit single-chip microcontroller xc800 family 1 summary of features ? high-performance xc800 core ? compatible with standard 8051 processor ? two clocks per machine cycle architecture (for memory acce ss without wait state) ? two data pointers ? on-chip memory ? 8 kbytes of boot rom ? 256 bytes of ram ? 512 bytes of xram ? 4/8/16 kbytes of flash; or 8/16 kbytes of rom, with additional 4 kbytes of flash (includes memory protection strategy) ? i/o port supply at 3.3 v/5.0 v and core logic supply at 2.5 v (generated by embedded voltage regulator) (further features are on next page) figure 1 xc866 functional units port 0 port 1 port 2 port 3 xc800 core uart adc 10-bit 8-channel boot rom 8k bytes xram 512 bytes ram 256 bytes on-chip debug support timer 0 16-bit timer 1 16-bit timer 2 16-bit watchdog timer ssc 4k/ 8k/16k bytes flash or 8k/16k bytes rom 1) capture/compare unit 16-bit compare unit 16-bit 6-bit digital i/o 5-bit digital i/o 8-bit digital i/o 8-bit digital/analog input 1) all rom devices include 4k bytes flash
xc866 summary of features data sheet 2 v1.1, 2006-12 features (continued): ? reset generation ? power-on reset ? hardware reset ? brownout reset for core logic supply ? watchdog timer reset ? power-down wake-up reset ? on-chip osc and pll for clock generation ? pll loss-of-lock detection ? power saving modes ? slow-down mode ? idle mode ? power-down mode with wake-up capability via rxd or exint0 ? clock gating control to each peripheral ? programmable 16-bit watchdog timer (wdt) ? four ports ? 19 pins as digital i/o ? 8 pins as digital/analog input ? 8-channel, 10-bit adc ? three 16-bit timers ? timer 0 and timer 1 (t0 and t1) ?timer 2 ? capture/compare unit for pwm signal generation (ccu6) ? full-duplex serial interface (uart) ? synchronous serial channel (ssc) ? on-chip debug support ? 1 kbyte of monitor rom (par t of the 8-kbyte boot rom) ? 64 bytes of monitor ram ? pg-tssop-38 pin package ? temperature range t a : ? saf (-40 to 85 c) ? sak (-40 to 125 c)
xc866 summary of features data sheet 3 v1.1, 2006-12 xc866 variant devices the xc866 product family feat ures devices with different configurations and program memory sizes, temperature and quality profiles (automotive or industrial), offering cost- effective solution for different application requirements. the configuration of lin bsl for xc866 devices are summarized in table 1 . the list of xc866 devices and their differences are summarized in table 2 . table 1 device configuration for lin bsl device name lin bsl support xc866 no xc866l yes table 2 device summary device type device name power supply (v) p-flash size (kbytes) d-flash size (kbytes) rom size (kbytes) quality profile 1) flash 2) sak-xc866*-4fra 5.0 12 4 ? automotive sak-xc866*-4fri 5.0 12 4 ? industrial sak-xc866*-2fra 5.0 4 4 ? automotive sak-xc866*-2fri 5.0 4 4 ? industrial sak-xc866*-1fra 5.0/ 3.3 ? 4 ? automotive sak-xc866*-1fri 5.0/3.3 ? 4 ? industrial saf-xc866*-4fra 5.0 12 4 ? automotive saf-xc866*-4fri 5.0 12 4 ? industrial saf-xc866*-2fra 5.0 4 4 ? automotive saf-xc866*-2fri 5.0 4 4 ? industrial saf-xc866*-1fra 5.0/3.3 ? 4 ? automotive saf-xc866*-1fri 5.0/3.3 ? 4 ? industrial sak-xc866*-4fra 3v 3.3 12 4 ? automotive sak-xc866*-4fri 3v 3.3 12 4 ? industrial sak-xc866*-2fra 3v 3.3 4 4 ? automotive sak-xc866*-2fri 3v 3.3 4 4 ? industrial saf-xc866*-4fra 3v 3.3 12 4 ? automotive
xc866 summary of features data sheet 4 v1.1, 2006-12 note: the asterisk (*) above denotes the device configuration letters from table 1 . ordering information the ordering code for infineon technologi es microcontrollers provides an exact reference to the required product. this ordering code identifies: ? the derivative itself, i.e. its function set, the temperature range, and the supply voltage ? the package and the type of delivery for the available ordering codes for the xc866, please refer to your responsible sales representative or your local distributor. as this document refers to all the derivativ es, some descriptions may not apply to a specific product. for simplicity all versions are referred to by the term xc866 throughout this document. saf-xc866*-4fri 3v 3.3 12 4 ? industrial saf-xc866*-2fra 3v 3.3 4 4 ? automotive saf-xc866*-2fri 3v 3.3 4 4 ? industrial rom sak-xc866*-4rra 5.0/3.3 ? 4 16 automotive sak-xc866*-4rri 5.0/ 3.3 ? 4 16 industrial sak-xc866*-2rra 5.0/ 3.3 ? 4 8 automotive sak-xc866*-2rri 5.0/ 3.3 ? 4 8 industrial saf-xc866*-4rra 5.0/3.3 ? 4 16 automotive saf-xc866*-4rri 5.0/3.3 ? 4 16 industrial saf-xc866*-2rra 5.0/3.3 ? 4 8 automotive saf-xc866*-2rri 5.0/3.3 ? 4 8 industrial 1) industrial is not for automotive usage 2) the flash memory (p-flash and d-flash) can be used for code or data. table 2 device summary
xc866 general device information data sheet 5 v1.1, 2006-12 2 general device information 2.1 block diagram figure 2 xc866 block diagram adc port 0 port 1 port 2 port 3 ccu6 timer 2 ssc wdt ocds 8-kbyte boot rom 1) 256-byte ram + 64-byte monitor ram 512-byte xram 4/8/16-kbyte flash or 8/16-kbyte rom 2) xc800 core t0 & t1 uart 1) includes 1-kbyte monitor rom 2) includes additional 4-kbyte flash p0.0 - p0.5 p1.0 - p1.1 p1.5-p1.7 p3.0 - p3.7 p2.0 - p2.7 v aref v agnd clock generator 10 mhz on-chip osc pll xtal1 xtal2 internal bus v ddp v ssp v ddc v ssc reset tms mbc xc866
xc866 general device information data sheet 6 v1.1, 2006-12 2.2 logic symbol figure 3 xc866 logic symbol xc866 v ddp v ssp v ddc v ssc v aref v agnd xtal1 xtal2 tms reset mbc port 0 6-bit port 1 5-bit port 3 8-bit port 2 8-bit
xc866 general device information data sheet 7 v1.1, 2006-12 2.3 pin configuration figure 4 xc866 pin configur ation, pg-tssop-38 package (top view) p0.0/tck_0/t12hr_1/cc61_1/clkout/rxdo_1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 28 27 26 25 24 23 22 21 20 37 36 35 34 33 32 31 30 29 38 xc866 p2.0/ccpos0_0/exint1/t12hr_2/tck_1/cc61_3/an0 p0.2/ctrap_2/tdo_0/txd_1 p0.3/sclk_1/cout63_1 p0.4/mtsr_1/cc62_1 p0.5/mrst_1/exint0_0/cout62_1 p1.0/rxd_0/t2ex p1.1/exint3/tdo_1/txd_0 p1.5/ccpos0_1/exint5/exf2_0/rxdo_0 p1.6/ccpos1_1/t12hr_0/exint6 p1.7/ccpos2_1/t13hr_0 p2.4/an4 p2.1/ccpos1_0/exint2/t13hr_2/tdi_1/cc62_3/an1 p2.2/ccpos2_0/ctrap_1/cc60_3/an2 p2.3/an3 p2.7/an7 p2.5/an5 p2.6/an6 p3.0/ccpos1_2/cc60_0 p3.1/ccpos0_2/cc61_2/cout60_0 p3.2/ccpos2_2/cc61_0 p3.3/cout61_0 p3.4/cc62_0 p3.5/cout62_0 p3.6/ctrap_0 p3.7/exint4/cout63_0 v ddp v ssp v ddc v ssc v aref v agnd xtal1 xtal2 tms reset mbc p0.1/tdi_0/t13hr_1/rxd_1/exf2_1/cout61_1
xc866 general device information data sheet 8 v1.1, 2006-12 2.4 pin definitions and functions table 3 pin definitions and functions symbol pin number type reset state function p0 i/o port 0 port 0 is a 6-bit bidirectional general purpose i/o port. it can be used as alternate functions for the jtag, ccu6, uart, and the ssc. p0.0 12 hi-z tck_0 jtag clock input t12hr_1 ccu6 timer 12 hardware run input cc61_1 input/output of capture/compare channel 1 clkout clock output rxdo_1 uart transmit data output p0.1 14 hi-z tdi_0 jtag serial data input t13hr_1 ccu6 timer 13 hardware run input rxd_1 uart receive data input cout61_1 output of capture/compare channel 1 exf2_1 timer 2 external flag output p0.2 13 pu ctrap_2 ccu6 trap input tdo_0 jtag serial data output txd_1 uart transmit data output/ clock output p0.3 2 hi-z sck_1 ssc clock input/output cout63_1 output of capture/compare channel 3 p0.4 3 hi-z mtsr_1 ssc master transmit output/ slave receive input cc62_1 input/output of capture/compare channel 2 p0.5 4 hi-z mrst_1 ssc master receive input/ slave transmit output exint0_0 external interrupt input 0 cout62_1 output of capture/compare channel 2
xc866 general device information data sheet 9 v1.1, 2006-12 p1 i/o port 1 port 1 is a 5-bit bidirectional general purpose i/o port. it can be used as alternate functions for the jtag, ccu6, uart, and the ssc. p1.0 27 pu rxd_0 uart receive data input t2ex timer 2 external trigger input p1.1 28 pu exint3 external interrupt input 3 tdo_1 jtag serial data output txd_0 uart transmit data output/ clock output p1.5 29 pu ccpos0_1 ccu6 hall input 0 exint5 external interrupt input 5 exf2_0 timer 2 external flag output rxdo_0 uart transmit data output p1.6 9 pu ccpos1_1 ccu6 hall input 1 t12hr_0 ccu6 timer 12 hardware run input exint6 external interrupt input 6 p1.7 10 pu ccpos2_1 ccu6 hall input 2 t13hr_0 ccu6 timer 13 hardware run input p1.5 and p1.6 can be used as a software chip select output for the ssc. table 3 pin definitions and functions (cont?d) symbol pin number type reset state function
xc866 general device information data sheet 10 v1.1, 2006-12 p2 i port 2 port 2 is an 8-bit general purpose input-only port. it can be used as alternate functions for the digital inputs of the jtag and ccu6. it is also used as the analog inputs for the adc. p2.0 15 hi-z ccpos0_0 ccu6 hall input 0 exint1 external interrupt input 1 t12hr_2 ccu6 timer 12 hardware run input tck_1 jtag clock input cc61_3 input of capture/compare channel 1 an0 analog input 0 p2.1 16 hi-z ccpos1_0 ccu6 hall input 1 exint2 external interrupt input 2 t13hr_2 ccu6 timer 13 hardware run input tdi_1 jtag serial data input cc62_3 input of capture/compare channel 2 an1 analog input 1 p2.2 17 hi-z ccpos2_0 ccu6 hall input 2 ctrap_1 ccu6 trap input cc60_3 input of capture/compare channel 0 an2 analog input 2 p2.3 20 hi-z an3 analog input 3 p2.4 21 hi-z an4 analog input 4 p2.5 22 hi-z an5 analog input 5 p2.6 23 hi-z an6 analog input 6 p2.7 26 hi-z an7 analog input 7 table 3 pin definitions and functions (cont?d) symbol pin number type reset state function
xc866 general device information data sheet 11 v1.1, 2006-12 p3 i port 3 port 3 is a bidirectional general purpose i/o port. it can be used as alternat e functions for the ccu6. p3.0 32 hi-z ccpos1_2 ccu6 hall input 1 cc60_0 input/output of capture/compare channel 0 p3.1 33 hi-z ccpos0_2 ccu6 hall input 0 cc61_2 input/output of capture/compare channel 1 cout60_0 output of capture/compare channel 0 p3.2 34 hi-z ccpos2_2 ccu6 hall input 2 cc61_0 input/output of capture/compare channel 1 p3.3 35 hi-z cout61_0 output of capture/compare channel 1 p3.4 36 hi-z cc62_0 input/output of capture/compare channel 2 p3.5 37 hi-z cout62_0 output of capture/compare channel 2 p3.6 30 pd ctrap_0 ccu6 trap input p3.7 31 hi-z exint4 external interrupt input 4 cout63_0 output of capture/compare channel 3 table 3 pin definitions and functions (cont?d) symbol pin number type reset state function
xc866 general device information data sheet 12 v1.1, 2006-12 v ddp 18 ? ? i/o port supply (3.3 v/5.0 v) v ssp 19 ? ? i/o port ground v ddc 8?? core supply monitor (2.5 v) v ssc 7?? core supply ground v aref 25 ? ? adc reference voltage v agnd 24 ? ? adc reference ground xtal1 6ihi-z external oscillator input (nc if not needed) xtal2 5ohi-z external oscillator output (nc if not needed) tms 11 i pd test mode select reset 38 i pu reset input mbc 1ipu monitor & bootstrap loader control table 3 pin definitions and functions (cont?d) symbol pin number type reset state function
xc866 functional description data sheet 13 v1.1, 2006-12 3 functional description 3.1 processor architecture the xc866 is based on a high-performance 8-bit central processing unit (cpu) that is compatible with the standard 8051 processo r. while the standard 8051 processor is designed around a 12-clock machine cycle, the xc866 cp u uses a 2-clock machine cycle. this allows fast access to rom or ram memories without wait state. access to the flash memory, however, requires an add itional wait state (o ne machine cycle). the instruction set consists of 45% one-byte, 41 % two-byte and 14% three-byte instructions. the xc866 cpu provides a range of debugg ing features, including basic stop/start, single-step execution, break point support and read/write access to the data memory, program memory and sfrs. figure 5 shows the cpu functional blocks. figure 5 cpu block diagram register interface alu uart core sfrs 16-bit registers & memory interface opcode decoder state machine & power saving interrupt controller multiplier / divider opcode & immediate registers timer 0 / timer 1 internal data memory external sfrs external data memory program memory f cclk memory wait reset legacy external interrupts (ien0, ien1) external interrupts non-maskable interrupt
xc866 functional description data sheet 14 v1.1, 2006-12 3.2 memory organization the xc866 cpu operates in the following five address spaces: ? 8 kbytes of boot rom program memory ? 256 bytes of internal ram data memory ? 512 bytes of xram memory (xram can be read/written as progra m memory or external data memory) ? a 128-byte special function register area ? 4/8/16 kbytes of flash program memory (flash devices); or 8/16 kbytes of rom program memory , with additional 4 kbytes of flash (rom devices) figure 6 illustrates the memory address spaces of the xc866-4fr device. figure 6 memory map of xc866 flash devices 0000 h 1000 h 2000 h 3000 h f000 h c000 h e000 h f200 h ffff h a000 h b000 h p-flash bank 1 4 kbytes 2) p-flash bank 2 4 kbytes 2) boot rom 8 kbytes xram 512 bytes f000 h f200 h 0000 h ffff h special function registers indirect address direct address 80 h ff h 00 h program space external data space internal data space internal ram xram 512 bytes 7f h internal ram p-flash bank 0 4 kbytes 1) d-flash bank 4 kbytes 1) 1) for xc866-1fr device, physically one 4kbyte d-flash bank is mapped to both address range 0000h - 0 fffh and a000h - a fffh, and the shaded banks are not available. 2) for xc866-2fr device, the shaded banks are not available.
xc866 functional description data sheet 15 v1.1, 2006-12 figure 7 illustrates the memory address spaces of the xc866-4rr device. figure 7 memory map of xc866 rom devices 0000 h 3000 h f000 h c000 h e000 h f200 h a000 h boot rom 8 kbytes xram 512 bytes f000 h f200 h 0000 h ffff h special function registers indirect address direct address 80 h ff h 00 h code space external data space internal data space internal ram memory map user mode xram 512 bytes 7f h internal ram user rom 8 kbytes 1) for xc866-2rr device, the shaded area is not available and flash is 4 kbytes. 2) for xc866-4rr device: rom = (12+x) kbytes, flash = (4-x) kbytes. b000 h total 4 kbytes 2) user rom (x bytes) flash (4k-x bytes) 2000 h user rom 4 kbytes 1)
xc866 functional description data sheet 16 v1.1, 2006-12 3.2.1 memory protection strategy the xc866 memory protection strategy includes: ? read-out protection: the flash memory c an be enabled for read-out protection and rom memory is always protected. ? program and erase protecti on: the flash memory in all devices can be enabled for program and erase protection. flash memory protection is available in two modes: ? mode 0: only the p-flash is prot ected; the d-flash is unprotected ? mode 1: both the p-flash and d-flash are protected the selection of each protection mode and the restrictions imposed are summarized in table 4 . bsl mode 6, which is used for enabling flas h protection, can also be used for disabling flash protection. here, the programmed password must be provided by the user. a password match triggers an automatic eras e of the read-protected flash contents, see table 5 and table 6 , and the programmed password is erased. the flash protection is then disabled upon the next reset. for xc866-2fr and xc866-4fr devices: the selection of protection type is summarized in table 5 . table 4 flash protection modes mode 01 activation program a valid password via bsl mode 6 selection msb of password = 0 msb of password = 1 p-flash contents can be read by read instructions in the p-flash read instructions in the p-flash or d-flash p-flash program and erase not possible not possible d-flash contents can be read by read instructions in any program memory read instructions in the p-flash or d-flash d-flash program possible not possible d-flash erase possible, on the condition that bit dflashen in register misc_con is set to 1 prior to each erase operation not possible
xc866 functional description data sheet 17 v1.1, 2006-12 for xc866-1fr device and rom devices: the selection of protection type is summarized in table 6 . although no protection scheme can be considered infallible, the xc866 memory protection strategy provides a very hi gh level of protection for a general purpose microcontroller. table 5 flash protection type for xc866-2fr and xc866-4fr devices password type of protection flash banks to erase when unprotected 1xxxxxxx b flash protection mode 1 all banks 0xxxxxxx b flash protection mode 0 p-flash bank table 6 flash protection type for xc866-1fr device and rom devices password type of protection (applicable to the whole flash) sectors to erase when unprotected comments 1xxxxxxx b read/program/erase all sectors compatible to protection mode 1 00001xxx b erase sector 0 00010xxx b erase sector 0 and 1 00011xxx b erase sector 0 to 2 00100xxx b erase sector 0 to 3 00101xxx b erase sector 0 to 4 00110xxx b erase sector 0 to 5 00111xxx b erase sector 0 to 6 01000xxx b erase sector 0 to 7 01001xxx b erase sector 0 to 8 01010xxx b erase all sectors others erase none
xc866 functional description data sheet 18 v1.1, 2006-12 3.2.2 special function register the special function registers (sfrs) occupy direct internal data memory space in the range 80 h to ff h . all registers, except the program counter, reside in the sfr area. the sfrs include pointers and registers that provide an interface between the cpu and the on-chip peripherals. as the 128-sfr range is less than the total number of registers required, address extension mechanisms ar e required to increase the number of addressable sfrs. the address extension mechanisms include: ? mapping ? paging 3.2.2.1 address extension by mapping address extension is perfo rmed at the system level by mapping. the sfr area is extended into two portions: the standard (non-mapped) sfr area and the mapped sfr area. each portion supports the same address range 80 h to ff h , bringing the number of addressable sfrs to 256. the extended address range is not directly controlled by the cpu instruction itself, bu t is derived from bit rmap in the system control register syscon0 at address 8f h . to access sfrs in the mapped area, bit rmap in sfr syscon0 must be set. alternat ively, the sfrs in the st andard area can be accessed by clearing bit rmap. the sfr area can be selected as shown in figure 8 . syscon0 system control register 0 reset value: 00 h 765432 10 010rmap rrwrrw field bits type description rmap 0rw special function register map control 0 the access to the standard sfr area is enabled. 1 the access to the mapped sfr area is enabled. 1 2rw reserved returns the last value if read; should be written with 1. 0 1,[7:3] r reserved returns 0 if read; should be written with 0.
xc866 functional description data sheet 19 v1.1, 2006-12 note: the rmap bit must be cleared/set by an l or orl instructions. the rest bits of syscon0 should not be modified. as long as bit rmap is set, the mapped sfr area can be accessed. this bit is not cleared automatically by hardware. th us, before standard/ma pped registers are accessed, bit rmap must be cleared /set, respectively, by software. figure 8 address extension by mapping module 1 sfrs ?... syscon0.rmap sfr data (to/from cpu) rw standard area (rmap = 0) ?... 80 h ff h 80 h ff h direct internal data memory address mapped area (rmap = 1) module 2 sfrs module n sfrs module (n+1) sfrs module (n+2) sfrs module m sfrs
xc866 functional description data sheet 20 v1.1, 2006-12 3.2.2.2 address extension by paging address extension is further performed at the module level by paging. with the address extension by mapping, the xc866 has a 256-sfr address range. however, this is still less than the total number of sfrs needed by the on-chip peripherals. to meet this requirement, some peripherals have a built-in local address extension mechanism for increasing the number of addressable sfrs . the extended address range is not directly controlled by the cpu instructio n itself, but is derived from bit field page in the module page register mod_page. hence, the bi t field page must be programmed before accessing the sfr of the target module. each module may contain a different number of pages and a different number of sf rs per page, depending on the specific requirement. besides setting the correct rmap bit value to select the sfr area, the user must also ensure that a valid page is selected to target the desired sfr. a page inside the extended address range can be selected as shown in figure 9 . figure 9 address extension by paging sfr0 sfr1 sfrx ?... page 0 sfr0 sfr1 sfry ?... page 1 ?... sfr0 sfr1 sfrz ?... page q mod_page.page sfr address (from cpu) sfr data (to/from cpu) rw module
xc866 functional description data sheet 21 v1.1, 2006-12 in order to access a register located in a p age different from the actual one, the current page must be left. this is done by reprogramming the bit field page in the page register. only then can the desired access be performed. if an interrupt routine is initiated betw een the page register access and the module register access, and the interrupt needs to a ccess a register locat ed in another page, the current page setting can be saved, the new one programmed and finally, the old page setting restored. this is possible with the storage fields stx (x = 0 - 3) for the save and restore action of the current page setting. by indicating which storage bit field should be used in parallel with the new page va lue, a single write operation can: ? save the contents of page in stx befo re overwriting with the new value (this is done in the beginning of the interr upt routine to save the current page setting and program the new page number); or ? overwrite the contents of page with the c ontents of stx, ignori ng the value written to the bit positions of page (this is done at the end of the interrupt ro utine to restore the previous page setting before the interrupt occurred) figure 10 storage elements for paging with this mechanism, a certain number of in terrupt routines (or other routines) can perform page changes without reading and st oring the previously used page information. the use of only write oper ations makes the system simp ler and faster . consequently, this mechanism significantly improves the performance of short interrupt routines. the xc866 supports local address extension for: ? parallel ports ? analog-to-digital converter (adc) ? capture/compare unit 6 (ccu6) ? system control registers page st0 st1 st2 st3 value update from cpu stnr
xc866 functional description data sheet 22 v1.1, 2006-12 the page register has the following definition: mod_page page register for module mod reset value: 00 h 765432 10 op stnr 0 page wwr rw field bits type description page [2:0] rw page bits when written, the value indicates the new page. when read, the value indicates the currently active page. stnr [5:4] w storage number this number indicates which storage bit field is the target of the operation defined by bit field op. if op = 10 b , the contents of page are saved in stx before being overwritten with the new value. if op = 11 b , the contents of page are overwritten by the contents of stx. the value wr itten to the bit positions of page is ignored. 00 st0 is selected. 01 st1 is selected. 10 st2 is selected. 11 st3 is selected.
xc866 functional description data sheet 23 v1.1, 2006-12 op [7:6] w operation 0x manual page mode. the value of stnr is ignored and page is directly written. 10 new page programming with automatic page saving. the value written to the bit positions of page is stored. in parallel, the previous contents of page are saved in the storage bit field stx indicated by stnr. 11 automatic restore page action. the value written to the bit positions page is ignored and instead, page is overwritten by the contents of the storage bit field stx indicated by stnr. 0 3r reserved returns 0 if read; should be written with 0. field bits type description
xc866 functional description data sheet 24 v1.1, 2006-12 3.2.3 bit protection scheme the bit protection scheme prevents direct softwa re writing of selected bits (i.e., protected bits) using the passwd register. when the bit field mode is 11 b , writing 10011 b to the bit field pass opens access to writing of all protect ed bits, and wr iting 10101 b to the bit field pass closes access to writing of all protected bits. note that access is opened for maximum 32 cclks if the ?close access? password is not written. if ?open access? password is written again be fore the end of 32 cclk cycles, there will be a recount of 32 cclk cycles. the protected bits includ e ndiv, wdten, pd, and sd. passwd password register reset value: 07 h 76543210 pass protect _s mode wh rh rw field bits type description mode [1:0] rw bit protection scheme control bits 00 scheme disabled 11 scheme enabled (default) others: scheme enabled these two bits cannot be written directly. to change the value between 11 b and 00 b , the bit field pass must be written with 11000 b ; only then, will the mode[1:0] be registered. protect_s 2rh bit protection signal status bit this bit shows the status of the protection. 0 software is able to writ e to all protected bits. 1 software is unable to write to any protected bits. pass [7:3] wh password bits the bit protection scheme only recognizes three patterns. 11000 b enables writing of the bit field mode. 10011 b opens access to writing of all protected bits. 10101 b closes access to writing of all protected bits.
xc866 functional description data sheet 25 v1.1, 2006-12 3.2.4 xc866 register overview the sfrs of the xc866 are organized into groups according to their functional units. the contents (bits) of the sfrs are summarized in table 7 to table 15 , with the addresses of the bitaddressable sfrs appearing in bold typeface. the cpu sfrs can be accessed in both the standard and mapped memory areas (rmap = 0 or 1). table 7 cpu register overview addrregister name bit 76543210 rmap = 0 or 1 81 h sp reset: 07 h stack pointer register bit field sp type rw 82 h dpl reset: 00 h data pointer register low bit field dpl7 dpl6 dpl5 dpl4 dpl3 dpl2 dpl1 dpl0 type rw rw rw rw rw rw rw rw 83 h dph reset: 00 h data pointer register high bit field dph7 dph6 dph5 dph4 dph3 dph2 dph1 dph0 type rw rw rw rw rw rw rw rw 87 h pcon reset: 00 h power control register bit field smod 0 gf1 gf0 0 idle type rw r rw rw r rw 88 h tcon reset: 00 h timer control register bit field tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 type rwh rw rwh rw rwh rw rwh rw 89 h tmod reset: 00 h timer mode register bit field gate1 0 t1m gate0 0 t0m type rw r rw rw r rw 8a h tl0 reset: 00 h timer 0 register low bit field val type rwh 8b h tl1 reset: 00 h timer 1 register low bit field val type rwh 8c h th0 reset: 00 h timer 0 register high bit field val type rwh 8d h th1 reset: 00 h timer 1 register high bit field val type rwh 98 h scon reset: 00 h serial channel control register bit field sm0 sm1 sm2 ren tb8 rb8 ti ri type rw rw rw rw rw rwh rwh rwh 99 h sbuf reset: 00 h serial data buffer register bit field val type rwh a2 h eo reset: 00 h extended operation register bit field 0 trap_ en 0 dpsel 0 type r rw r rw a8 h ien0 reset: 00 h interrupt enable register 0 bit field ea 0 et2 es et1 ex1 et0 ex0 type rw r rwrwrwrwrwrw b8 h ip reset: 00 h interrupt priority register bit field 0 pt2 ps pt1 px1 pt0 px0 type r rwrwrwrwrwrw b9 h iph reset: 00 h interrupt priority register high bit field 0 pt2h psh pt1h px1h pt0h px0h type r rwrwrwrwrwrw d0 h psw reset: 00 h program status word register bit field cy ac f0 rs1 rs0 ov f1 p type rw rwh rwh rw rw rwh rwh rh e0 h acc reset: 00 h accumulator register bit field acc7 acc6 acc5 acc4 acc3 acc2 acc1 acc0 type rw rw rw rw rw rw rw rw e8 h ien1 reset: 00 h interrupt enable register 1 bit field eccip 3 eccip 2 eccip 1 eccip 0 exm ex2 essc eadc type rw rw rw rw rw rw rw rw
xc866 functional description data sheet 26 v1.1, 2006-12 the system control sfrs can be accessed in the standard memory area (rmap = 0). f0 h b reset: 00 h b register bit field b7 b6 b5 b4 b3 b2 b1 b0 type rw rw rw rw rw rw rw rw f8 h ip1 reset: 00 h interrupt priority register 1 bit field pccip 3 pccip 2 pccip 1 pccip 0 pxm px2 pssc padc type rw rw rw rw rw rw rw rw f9 h iph1 reset: 00 h interrupt priority register 1 high bit field pccip 3h pccip 2h pccip 1h pccip 0h pxmh px2h pssch padc h type rw rw rw rw rw rw rw rw table 8 system control register overview addrregister name bit 76543210 rmap = 0 or 1 8f h syscon0 reset: 00 h system control register 0 bit field 0 rmap type r rw rmap = 0 bf h scu_page reset: 00 h page register for system control bit field op stnr 0 page type w w r rw rmap = 0, page 0 b3 h modpisel reset: 00 h peripheral input select register bit field 0 jtag tdis jtag tcks 0 exint 0is urris type r rw rw r rw rw b4 h ircon0 reset: 00 h interrupt request register 0 bit field 0 exint 6 exint 5 exint 4 exint 3 exint 2 exint 1 exint 0 type r rwh rwh rwh rwh rwh rwh rwh b5 h ircon1 reset: 00 h interrupt request register 1 bit field 0 adcs rc1 adcs rc0 rir tir eir type r rwh rwh rwh rwh rwh b7 h exicon0 reset: 00 h external interrupt control register 0 bit field exint3 exint2 exint1 exint0 type rw rw rw rw ba h exicon1 reset: 00 h external interrupt control register 1 bit field 0 exint6 exint5 exint4 type r rw rw rw bb h nmicon reset: 00 h nmi control register bit field 0 nmi ecc nmi vddp nmi vdd nmi ocds nmi flash nmi pll nmi wdt type r rw rw rw rw rw rw rw bc h nmisr reset: 00 h nmi status register bit field 0 fnmi ecc fnmi vddp fnmi vdd fnmi ocds fnmi flash fnmi pll fnmi wdt type r rwh rwh rwh rwh rwh rwh rwh bd h bcon reset: 00 h baud rate control register bit field bgsel 0 bren brpre r type rw r rw rw rw be h bg reset: 00 h baud rate timer/reload register bit field br_value type rw e9 h fdcon reset: 00 h fractional divider control register bit field bgs synen errsy n eofsy n brk ndov fdm fden type rw rw rwh rwh rwh rwh rw rw ea h fdstep reset: 00 h fractional divider reload register bit field step type rw eb h fdres reset: 00 h fractional divider result register bit field result type rh rmap = 0, page 1 table 7 cpu register overview (cont?d) addrregister name bit 76543210
xc866 functional description data sheet 27 v1.1, 2006-12 the wdt sfrs can be accessed in the mapped memory area (rmap = 1). b3 h id reset: 01 h identity register bit field prodid verid type r r b4 h pmcon0 reset: 00 h power mode control register 0 bit field 0 wdt rst wkrs wk sel sd pd ws type r rwh rwh rw rw rwh rw b5 h pmcon1 reset: 00 h power mode control register 1 bit field 0 t2_dis ccu _dis ssc _dis adc _dis type r rw rw rw rw b6 h osc_con reset: 08 h osc control register bit field 0 osc pd xpd osc ss ord res oscr type r rw rw rw rwh rh b7 h pll_con reset: 20 h pll control register bit field ndiv vco byp osc disc resld lock type rw rw rw rwh rh ba h cmcon reset: 00 h clock control register bit field vco sel 0 clkrel type rw r rw bb h passwd reset: 07 h password register bit field pass prote ct_s mode type wh rh rw bc h feal reset: 00 h flash error address register low bit field eccerraddr[7:0] type rh bd h feah reset: 00 h flash error address register high bit field eccerraddr[15:8] type rh be h cocon reset: 00 h clock output control register bit field 0 tlen cout s corel type r rw rw rw e9 h misc_con reset: 00 h miscellaneous control register bit field 0 dflas hen type r rwh rmap = 0, page 3 b3 h xaddrh reset: f0 h on-chip xram address higher order bit field addrh type rw table 9 wdt register overview addrregister name bit 76543210 rmap = 1 bb h wdtcon reset: 00 h watchdog timer control register bit field 0 winb en wdt pr 0 wdt en wdt rs wdt in type r rw rh r rw rwh rw bc h wdtrel reset: 00 h watchdog timer reload register bit field wdtrel type rw bd h wdtwinb reset: 00 h watchdog window-boundary count register bit field wdtwinb type rw be h wdtl reset: 00 h watchdog timer register low bit field wdt[7:0] type rh bf h wdth reset: 00 h watchdog timer register high bit field wdt[15:8] type rh table 8 system control register overview (cont?d) addrregister name bit 76543210
xc866 functional description data sheet 28 v1.1, 2006-12 the port sfrs can be accessed in the standard memory area (rmap = 0). table 10 port register overview addrregister name bit 76543210 rmap = 0 b2 h port_page reset: 00 h page register for port bit field op stnr 0 page type w w r rw rmap = 0, page 0 80 h p0_data reset: 00 h p0 data register bit field 0 p5 p4 p3 p2 p1 p0 type r rw rw rw rw rw rw 86 h p0_dir reset: 00 h p0 direction register bit field 0 p5 p4 p3 p2 p1 p0 type r rw rw rw rw rw rw 90 h p1_data reset: 00 h p1 data register bit field p7 p6 p5 0 p1 p0 type rw rw rw r rw rw 91 h p1_dir reset: 00 h p1 direction register bit field p7 p6 p5 0 p1 p0 type rw rw rw r rw rw a0 h p2_data reset: 00 h p2 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a1 h p2_dir reset: 00 h p2 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_data reset: 00 h p3 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b1 h p3_dir reset: 00 h p3 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw rmap = 0, page 1 80 h p0_pudsel reset: ff h p0 pull-up/pull-down select register bit field 0 p5 p4 p3 p2 p1 p0 type r rw rw rw rw rw rw 86 h p0_puden reset: c4 h p0 pull-up/pull-down enable register bit field 0 p5 p4 p3 p2 p1 p0 type r rw rw rw rw rw rw 90 h p1_pudsel reset: ff h p1 pull-up/pull-down select register bit field p7 p6 p5 0 p1 p0 type rw rw rw r rw rw 91 h p1_puden reset: ff h p1 pull-up/pull-down enable register bit field p7 p6 p5 0 p1 p0 type rw rw rw r rw rw a0 h p2_pudsel reset: ff h p2 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a1 h p2_puden reset: 00 h p2 pull-up/pull-down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_pudsel reset: bf h p3 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b1 h p3_puden reset: 40 h p3 pull-up/pull-down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw rmap = 0, page 2 80 h p0_altsel0 reset: 00 h p0 alternate select 0 register bit field 0 p5 p4 p3 p2 p1 p0 type r rw rw rw rw rw rw 86 h p0_altsel1 reset: 00 h p0 alternate select 1 register bit field 0 p5 p4 p3 p2 p1 p0 type r rw rw rw rw rw rw 90 h p1_altsel0 reset: 00 h p1 alternate select 0 register bit field p7 p6 p5 0 p1 p0 type rw rw rw r rw rw 91 h p1_altsel1 reset: 00 h p1 alternate select 1 register bit field p7 p6 p5 0 p1 p0 type rw rw rw r rw rw b0 h p3_altsel0 reset: 00 h p3 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw
xc866 functional description data sheet 29 v1.1, 2006-12 the adc sfrs can be accessed in the standard memory area (rmap = 0). b1 h p3_altsel1 reset: 00 h p3 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw rmap = 0, page 3 80 h p0_od reset: 00 h p0 open drain control register bit field 0 p5 p4 p3 p2 p1 p0 type r rw rw rw rw rw rw 90 h p1_od reset: 00 h p1 open drain control register bit field p7 p6 p5 0 p1 p0 type rw rw rw r rw rw b0 h p3_od reset: 00 h p3 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw table 11 adc register overview addrregister name bit 76543210 rmap = 0 d1 h adc_page reset: 00 h page register for adc bit field op stnr 0 page type w w r rw rmap = 0 , page 0 ca h adc_globctr reset: 30 h global control register bit field anon dw ctc 0 type rw rw rw r cb h adc_globstr reset: 00 h global status register bit field 0 chnr 0 sam ple busy type r rh r rh rh cc h adc_prar reset: 00 h priority and arbitration register bit field asen1 asen0 0 arbm csm1 prio1 csm0 prio0 type rw rw r rw rw rw rw rw cd h adc_lcbr reset: b7 h limit check boundary register bit field bound1 bound0 type rw rw ce h adc_inpcr0 reset: 00 h input class register 0 bit field stc type rw cf h adc_etrcr reset: 00 h external trigger control register bit field synen 1 synen 0 etrsel1 etrsel0 type rw rw rw rw rmap = 0 , page 1 ca h adc_chctr0 reset: 00 h channel control register 0 bit field 0 lcc 0 resrsel type r rw r rw cb h adc_chctr1 reset: 00 h channel control register 1 bit field 0 lcc 0 resrsel type r rw r rw cc h adc_chctr2 reset: 00 h channel control register 2 bit field 0 lcc 0 resrsel type r rw r rw cd h adc_chctr3 reset: 00 h channel control register 3 bit field 0 lcc 0 resrsel type r rw r rw ce h adc_chctr4 reset: 00 h channel control register 4 bit field 0 lcc 0 resrsel type r rw r rw cf h adc_chctr5 reset: 00 h channel control register 5 bit field 0 lcc 0 resrsel type r rw r rw d2 h adc_chctr6 reset: 00 h channel control register 6 bit field 0 lcc 0 resrsel type r rw r rw d3 h adc_chctr7 reset: 00 h channel control register 7 bit field 0 lcc 0 resrsel type r rw r rw rmap = 0 , page 2 table 10 port register overview (cont?d) addrregister name bit 76543210
xc866 functional description data sheet 30 v1.1, 2006-12 ca h adc_resr0l reset: 00 h result register 0 low bit field result[1:0] 0 vf drc chnr type rh r rh rh rh cb h adc_resr0h reset: 00 h result register 0 high bit field result[9:2] type rh cc h adc_resr1l reset: 00 h result register 1 low bit field result[1:0] 0 vf drc chnr type rh r rh rh rh cd h adc_resr1h reset: 00 h result register 1 high bit field result[9:2] type rh ce h adc_resr2l reset: 00 h result register 2 low bit field result[1:0] 0 vf drc chnr type rh r rh rh rh cf h adc_resr2h reset: 00 h result register 2 high bit field result[9:2] type rh d2 h adc_resr3l reset: 00 h result register 3 low bit field result[1:0] 0 vf drc chnr type rh r rh rh rh d3 h adc_resr3h reset: 00 h result register 3 high bit field result[9:2] type rh rmap = 0 , page 3 ca h adc_resra0l reset: 00 h result register 0, view a low bit field result[2:0] vf drc chnr type rh rh rh rh cb h adc_resra0h reset: 00 h result register 0, view a high bit field result[10:3] type rh cc h adc_resra1l reset: 00 h result register 1, view a low bit field result[2:0] vf drc chnr type rh rh rh rh cd h adc_resra1h reset: 00 h result register 1, view a high bit field result[10:3] type rh ce h adc_resra2l reset: 00 h result register 2, view a low bit field result[2:0] vf drc chnr type rh rh rh rh cf h adc_resra2h reset: 00 h result register 2, view a high bit field result[10:3] type rh d2 h adc_resra3l reset: 00 h result register 3, view a low bit field result[2:0] vf drc chnr type rh rh rh rh d3 h adc_resra3h reset: 00 h result register 3, view a high bit field result[10:3] type rh rmap = 0 , page 4 ca h adc_rcr0 reset: 00 h result control register 0 bit field vfctr wfr 0 ien 0 drct r type rw rw r rw r rw cb h adc_rcr1 reset: 00 h result control register 1 bit field vfctr wfr 0 ien 0 drct r type rw rw r rw r rw cc h adc_rcr2 reset: 00 h result control register 2 bit field vfctr wfr 0 ien 0 drct r type rw rw r rw r rw cd h adc_rcr3 reset: 00 h result control register 3 bit field vfctr wfr 0 ien 0 drct r type rw rw r rw r rw ce h adc_vfcr reset: 00 h valid flag clear register bit field 0 vfc3 vfc2 vfc1 vfc0 type r w w w w rmap = 0 , page 5 table 11 adc register overview (cont?d) addrregister name bit 76543210
xc866 functional description data sheet 31 v1.1, 2006-12 the timer 2 sfrs can be accessed in the standard memory area (rmap = 0). ca h adc_chinfr reset: 00 h channel interrupt flag register bit field chinf 7 chinf 6 chinf 5 chinf 4 chinf 3 chinf 2 chinf 1 chinf 0 type rh rh rh rh rh rh rh rh cb h adc_chincr reset: 00 h channel interrupt clear register bit field chinc 7 chinc 6 chinc 5 chinc 4 chinc 3 chinc 2 chinc 1 chinc 0 type wwww w w w w cc h adc_chinsr reset: 00 h channel interrupt set register bit field chins 7 chins 6 chins 5 chins 4 chins 3 chins 2 chins 1 chins 0 type wwww w w w w cd h adc_chinpr reset: 00 h channel interrupt node pointer register bit field chinp 7 chinp 6 chinp 5 chinp 4 chinp 3 chinp 2 chinp 1 chinp 0 type rw rw rw rw rw rw rw rw ce h adc_evinfr reset: 00 h event interrupt flag register bit field evinf 7 evinf 6 evinf 5 evinf 4 0 evinf 1 evinf 0 type rh rh rh rh r rh rh cf h adc_evincr reset: 00 h event interrupt clear flag register bit field evinc 7 evinc 6 evinc 5 evinc 4 0 evinc 1 evinc 0 type wwww r w w d2 h adc_evinsr reset: 00 h event interrupt set flag register bit field evins 7 evins 6 evins 5 evins 4 0 evins 1 evins 0 type wwww r w w d3 h adc_evinpr reset: 00 h event interrupt node pointer register bit field evinp 7 evinp 6 evinp 5 evinp 4 0 evinp 1 evinp 0 type rw rw rw rw r rw rw rmap = 0 , page 6 ca h adc_crcr1 reset: 00 h conversion request control register 1 bit field ch7 ch6 ch5 ch4 0 type rwhrwhrwhrwh r cb h adc_crpr1 reset: 00 h conversion request pending register 1 bit field chp7 chp6 chp5 chp4 0 type rwhrwhrwhrwh r cc h adc_crmr1 reset: 00 h conversion request mode register 1 bit field rsv ldev clr pnd scan ensi entr engt type r w w rw rw rw rw cd h adc_qmr0 reset: 00 h queue mode register 0 bit field cev trev flush clrv trmd entr engt type wwww rw rw rw ce h adc_qsr0 reset: 20 h queue status register 0 bit field rsv 0 empty ev 0 type r r rh rh r cf h adc_q0r0 reset: 00 h queue 0 register 0 bit field extr ensi rf v 0 reqchnr type rh rh rh rh r rh d2 h adc_qbur0 reset: 00 h queue backup register 0 bit field extr ensi rf v 0 reqchnr type rh rh rh rh r rh d2 h adc_qinr0 reset: 00 h queue input register 0 bit field extr ensi rf 0 reqchnr type www r w table 12 timer 2 register overview addrregister name bit 76543210 c0 h t2_t2con reset: 00 h timer 2 control register bit field tf2 exf2 0 exen2 tr2 0 cp/ rl2 type rwh rwh r rw rwh r rw table 11 adc register overview (cont?d) addrregister name bit 76543210
xc866 functional description data sheet 32 v1.1, 2006-12 the ccu6 sfrs can be accessed in t he standard memory area (rmap = 0). c1 h t2_t2mod reset: 00 h timer 2 mode register bit field t2 regs t2 rhen edge sel pren t2pre dcen type rw rw rw rw rw rw c2 h t2_rc2l reset: 00 h timer 2 reload/capture register low bit field rc2[7:0] type rwh c3 h t2_rc2h reset: 00 h timer 2 reload/capture register high bit field rc2[15:8] type rwh c4 h t2_t2l reset: 00 h timer 2 register low bit field thl2[7:0] type rwh c5 h t2_t2h reset: 00 h timer 2 register high bit field thl2[15:8] type rwh table 13 ccu6 register overview addrregister name bit 76543210 rmap = 0 a3 h ccu6_page reset: 00 h page register for ccu6 bit field op stnr 0 page type w w r rw rmap = 0 , page 0 9a h ccu6_cc63srl reset: 00 h capture/compare shadow register for channel cc63 low bit field cc63sl type rw 9b h ccu6_cc63srh reset: 00 h capture/compare shadow register for channel cc63 high bit field cc63sh type rw 9c h ccu6_tctr4l reset: 00 h timer control register 4 low bit field t12 std t12 str 0 dtres t12 res t12rs t12rr type w w r w w w w 9d h ccu6_tctr4h reset: 00 h timer control register 4 high bit field t13 std t13 str 0 t13 res t13rs t13rr type w w r w w w 9e h ccu6_mcmoutsl reset: 00 h multi-channel mode output shadow register low bit field strm cm 0 mcmps type w r rw 9f h ccu6_mcmoutsh reset: 00 h multi-channel mode output shadow register high bit field strhp 0 curhs exphs type w r rw rw a4 h ccu6_isrl reset: 00 h capture/compare interrupt status reset register low bit field rt12p m rt12o m rcc62 f rcc62 r rcc61 f rcc61 r rcc60 f rcc60 r type wwww w w w w a5 h ccu6_isrh reset: 00 h capture/compare interrupt status reset register high bit field rstr ridle rwhe rche 0 rtrpf rt13 pm rt13 cm type wwww r w w w a6 h ccu6_cmpmodifl reset: 00 h compare state modification register low bit field 0 mcc63 s 0 mcc62 s mcc61 s mcc60 s type r w r w w w a7 h ccu6_cmpmodifh reset: 00 h compare state modification register high bit field 0 mcc63 r 0 mcc62 r mcc61 r mcc60 r type r w r w w w fa h ccu6_cc60srl reset: 00 h capture/compare shadow register for channel cc60 low bit field cc60sl type rwh table 12 timer 2 register overview (cont?d)
xc866 functional description data sheet 33 v1.1, 2006-12 fb h ccu6_cc60srh reset: 00 h capture/compare shadow register for channel cc60 high bit field cc60sh type rwh fc h ccu6_cc61srl reset: 00 h capture/compare shadow register for channel cc61 low bit field cc61sl type rwh fd h ccu6_cc61srh reset: 00 h capture/compare shadow register for channel cc61 high bit field cc61sh type rwh fe h ccu6_cc62srl reset: 00 h capture/compare shadow register for channel cc62 low bit field cc62sl type rwh ff h ccu6_cc62srh reset: 00 h capture/compare shadow register for channel cc62 high bit field cc62sh type rwh rmap = 0 , page 1 9a h ccu6_cc63rl reset: 00 h capture/compare register for channel cc63 low bit field cc63vl type rh 9b h ccu6_cc63rh reset: 00 h capture/compare register for channel cc63 high bit field cc63vh type rh 9c h ccu6_t12prl reset: 00 h timer t12 period register low bit field t12pvl type rwh 9d h ccu6_t12prh reset: 00 h timer t12 period register high bit field t12pvh type rwh 9e h ccu6_t13prl reset: 00 h timer t13 period register low bit field t13pvl type rwh 9f h ccu6_t13prh reset: 00 h timer t13 period register high bit field t13pvh type rwh a4 h ccu6_t12dtcl reset: 00 h dead-time control register for timer t12 low bit field dtm type rw a5 h ccu6_t12dtch reset: 00 h dead-time control register for timer t12 high bit field 0 dtr2 dtr1 dtr0 0 dte2 dte1 dte0 type r rhrhrh r rw rw rw a6 h ccu6_tctr0l reset: 00 h timer control register 0 low bit field ctm cdir ste12 t12r t12 pre t12clk type rw rh rh rh rw rw a7 h ccu6_tctr0h reset: 00 h timer control register 0 high bit field 0 ste13 t13r t13 pre t13clk type r rh rh rw rw fa h ccu6_cc60rl reset: 00 h capture/compare register for channel cc60 low bit field cc60vl type rh fb h ccu6_cc60rh reset: 00 h capture/compare register for channel cc60 high bit field cc60vh type rh fc h ccu6_cc61rl reset: 00 h capture/compare register for channel cc61 low bit field cc61vl type rh table 13 ccu6 regi ster overview (cont?d) addrregister name bit 76543210
xc866 functional description data sheet 34 v1.1, 2006-12 fd h ccu6_cc61rh reset: 00 h capture/compare register for channel cc61 high bit field cc61vh type rh fe h ccu6_cc62rl reset: 00 h capture/compare register for channel cc62 low bit field cc62vl type rh ff h ccu6_cc62rh reset: 00 h capture/compare register for channel cc62 high bit field cc62vh type rh rmap = 0 , page 2 9a h ccu6_t12msell reset: 00 h t12 capture/compare mode select register low bit field msel61 msel60 type rw rw 9b h ccu6_t12mselh reset: 00 h t12 capture/compare mode select register high bit field dbyp hsync msel62 type rw rw rw 9c h ccu6_ienl reset: 00 h capture/compare interrupt enable register low bit field ent12 pm ent12 om encc 62f encc 62r encc 61f encc 61r encc 60f encc 60r type rw rw rw rw rw rw rw rw 9d h ccu6_ienh reset: 00 h capture/compare interrupt enable register high bit field enstr en idle en whe en che 0 en trpf ent13 pm ent13 cm type rw rw rw rw r rw rw rw 9e h ccu6_inpl reset: 40 h capture/compare interrupt node pointer register low bit field inpche inpcc62 inpcc61 inpcc60 type rw rw rw rw 9f h ccu6_inph reset: 39 h capture/compare interrupt node pointer register high bit field 0 inpt13 inpt12 inperr type r rw rw rw a4 h ccu6_issl reset: 00 h capture/compare interrupt status set register low bit field st12p m st12o m scc62 f scc62 r scc61 f scc61 r scc60 f scc60 r type wwww w w w w a5 h ccu6_issh reset: 00 h capture/compare interrupt status set register high bit field sstr sidle swhe sche swhc strpf st13 pm st13 cm type wwww w w w w a6 h ccu6_pslr reset: 00 h passive state level register bit field psl63 0 psl type rwh r rwh a7 h ccu6_mcmctr reset: 00 h multi-channel mode control register bit field 0 swsyn 0 swsel type r rw r rw fa h ccu6_tctr2l reset: 00 h timer control register 2 low bit field 0 t13ted t13tec t13 ssc t12 ssc type r rw rw rw rw fb h ccu6_tctr2h reset: 00 h timer control register 2 high bit field 0 t13rsel t12rsel type r rw rw fc h ccu6_modctrl reset: 00 h modulation control register low bit field mc men 0 t12moden type rw r rw fd h ccu6_modctrh reset: 00 h modulation control register high bit field ect13 o 0 t13moden type rw r rw fe h ccu6_trpctrl reset: 00 h trap control register low bit field 0 trpm2 trpm1 trpm0 type r rw rw rw table 13 ccu6 regi ster overview (cont?d) addrregister name bit 76543210
xc866 functional description data sheet 35 v1.1, 2006-12 the ssc sfrs can be accessed in the standard memory area (rmap = 0). ff h ccu6_trpctrh reset: 00 h trap control register high bit field trppe n trpen 13 trpen type rw rw rw rmap = 0 , page 3 9a h ccu6_mcmoutl reset: 00 h multi-channel mode output register low bit field 0 r mcmp type r rh rh 9b h ccu6_mcmouth reset: 00 h multi-channel mode output register high bit field 0 curh exph type r rh rh 9c h ccu6_isl reset: 00 h capture/compare interrupt status register low bit field t12pm t12om icc62f icc62 r icc61f icc61 r icc60f icc60 r type rh rh rh rh rh rh rh rh 9d h ccu6_ish reset: 00 h capture/compare interrupt status register high bit field str idle whe che trps trpf t13pm t13cm type rh rh rh rh rh rh rh rh 9e h ccu6_pisel0l reset: 00 h port input select register 0 low bit field istrp iscc62 iscc61 iscc60 type rw rw rw rw 9f h ccu6_pisel0h reset: 00 h port input select register 0 high bit field ist12hr ispos2 ispos1 ispos0 type rw rw rw rw a4 h ccu6_pisel2 reset: 00 h port input select register 2 bit field 0 ist13hr type r rw fa h ccu6_t12l reset: 00 h timer t12 counter register low bit field t12cvl type rwh fb h ccu6_t12h reset: 00 h timer t12 counter register high bit field t12cvh type rwh fc h ccu6_t13l reset: 00 h timer t13 counter register low bit field t13cvl type rwh fd h ccu6_t13h reset: 00 h timer t13 counter register high bit field t13cvh type rwh fe h ccu6_cmpstatl reset: 00 h compare state register low bit field 0 cc63 st ccpo s2 ccpo s1 ccpo s0 cc62 st cc61 st cc60 st type r rhrhrh rh rh rh rh ff h ccu6_cmpstath reset: 00 h compare state register high bit field t13im cout 63ps cout 62ps cc62 ps cout 61ps cc61 ps cout 60ps cc60 ps type rwhrwhrwhrwh rwh rwh rwh rwh table 14 ssc register overview addrregister name bit 76543210 rmap = 0 a9 h ssc_pisel reset: 00 h port input select register bit field 0 cis sis mis type r rw rw rw aa h ssc_conl reset: 00 h control register low programming mode bit field lb po ph hb bm type rw rw rw rw rw operating mode bit field 0 bc type r rh table 13 ccu6 regi ster overview (cont?d) addrregister name bit 76543210
xc866 functional description data sheet 36 v1.1, 2006-12 the ocds sfrs can be accessed in the mapped memory area (rmap = 1). ab h ssc_conh reset: 00 h control register high programming mode bit field en ms 0 aren ben pen ren ten type rw rw r rw rw rw rw rw operating mode bit field en ms 0 bsy be pe re te type rw rw r rh rwh rwh rwh rwh ac h ssc_tbl reset: 00 h transmitter buffer register low bit field tb_value type rw ad h ssc_rbl reset: 00 h receiver buffer register low bit field rb_value type rh ae h ssc_brl reset: 00 h baudrate timer reload register low bit field br_value[7:0] type rw af h ssc_brh reset: 00 h baudrate timer reload register high bit field br_value[15:8] type rw table 15 ocds register overview addrregister name bit 76543210 rmap = 1 e9 h mmcr2 reset: 0u h monitor mode control register 2 bit field exbc_ p exbc mbco n_p mbco n mmep _p mmep mmod e jena type w rw w rwh w rwh rh rh f1 h mmcr reset: 00 h monitor mode control register bit field mexit _p mexit mstep _p mstep mram s_p mram s trf rrf type w rwh w rw w rwh rh rh f2 h mmsr reset: 00 h monitor mode status register bit field mbca m mbcin exbf swbf hwb3 f hwb2 f hwb1 f hwb0 f type rw rh rwh rwh rwh rwh rwh rwh f3 h mmbpcr reset: 00 h breakpoints control register bit field swbc hwb3c hwb2c hwb1 c hwb0c type rw rw rw rw rw f4 h mmicr reset: 00 h monitor mode interrupt control register bit field dvect dretr 0 mmuie _p mmuie rrie_ p rrie type rwh rwh r w rw w rw f5 h mmdr reset: 00 h monitor mode data register receive bit field mmrr type rh transmit bit field mmtr type w f6 h hwbpsr reset: 00 h hardware breakpoints select register bit field 0 bpsel _p bpsel type r w rw f7 h hwbpdr reset: 00 h hardware breakpoints data register bit field hwbpxx type rw table 14 ssc register overview
xc866 functional description data sheet 37 v1.1, 2006-12 3.3 flash memory the flash memory provides an embedded user-programmable non-volatile memory, allowing fast and reliable storage of user code and data. it is operated from a single 2.5 v supply from the embedded voltage regulator (evr) and does not require additional programming or erasing voltage. the sector ization of the flash memory allows each sector to be erased independently. features ? in-system programming (isp) via uart ? in-application programming (iap) ? error correction code (ecc) for dynamic correction of single-bit errors ? background program and erase operations for cpu load minimization ? support for aborting erase operation ? minimum program width 1) of 32-byte for d-flash and 32-byte for p-flash ? 1-sector minimum erase width ? 1-byte read access ? operating supply voltage: 2.5 v 7.5 % ? read access time: 3 t cclk = 112.5 ns 2) ? program time: 209440 / f sys = 2.6 ms 3) ? erase time: 8175360 / f sys =102 ms 3) 1) p-flash: 32-byte wordline can only be programmed once, i.e., one gate disturb allowed. d-flash: 32-byte wordline can be programmed twice, i.e., two gate disturbs allowed. 2) f sys =80mhz7.5% ( f cclk = 26.7 mhz 7.5 %) is the maximum fre quency range for flash read access. 3) f sys = 80 mhz 7.5% is the only frequency range for flash programming and erasing. f sysmin is used for obtaining the worst case timing.
xc866 functional description data sheet 38 v1.1, 2006-12 table 16 shows the flash data retention and endurance targets. 3.3.1 flash bank sectorization the xc866 product family offers four flash devices with either 8 kbytes or 16 kbytes of embedded flash memory. these flash memory sizes are made up of two or four 4-kbyte flash banks, respectively. each flash device consists of program flash (p-flash) bank(s) and a single data flash (d-flash) bank with different sectorization shown in figure 11 . both types can be used for code and data storage. the label ?data? neither implies that the d-flash is mapped to the data memory region, nor that it can only be used for data storage. it is used to dist inguish the different fl ash bank sectorizations. the xc866 rom devices offer a single 4-kbyte d-flash bank. table 16 flash data retention and endurance (operating conditions apply) retention endurance 1) 1) one cycle refers to the programming of all wordlines in a sector and erasing of sector. the flash endurance data specified in table 16 is valid only if the following conditions are fulfilled: - the maximum number of erase cycles per fl ash sector must not exceed 100,000 cycles. - the maximum number of erase cycles per flash bank must not exceed 300,000 cycles. - the maximum number of program cycles per flash bank must not e xceed 2,500,000 cycles. size remarks program flash 20 years 1,000 cycles up to 16 kbytes 2) 2) if no flash is used for data, the program flash size can be up to the maximum flash size available in the device variant. having more data flash will mean less flash is available for program flash. for 16-kbyte variant 20 years 1,000 cycles up to 8 kbytes 2) for 8-kbyte variant 20 years 1,000 cycles up to 4 kbytes 2) for 4-kbyte variant data flash 20 years 1,000 cycles 4 kbytes 5 years 10,000 cycles 1 kbyte 2 years 70,000 cycles 512 bytes 2 years 100,000 cycles 128 bytes
xc866 functional description data sheet 39 v1.1, 2006-12 figure 11 flash bank sectorization the internal structure of each flash bank r epresents a sector architecture for flexible erase capability. the minimum erase width is always a complete sector, and sectors can be erased separately or in parallel. cont rary to standard eproms, erased flash memory cells contain 0s. the d-flash bank is divided into more physical sectors for extended erasing and reprogramming capability; even numbers for ea ch sector size are provided to allow greater flexibility and the ability to adapt to a wide range of application requirements. sector 9: 128-byte sector 5: 256-byte sector 3: 512-byte sector 1: 1-kbyte sector 0: 1-kbyte sector 7: 128-byte sector 8: 128-byte sector 6: 128-byte sector 4: 256-byte sector 2: 512-byte sector 0: 3.75-kbyte p-flash d-flash sector 2: 128-byte sector 1: 128-byte
xc866 functional description data sheet 40 v1.1, 2006-12 3.3.2 flash programming width for the p-flash banks, a programmed wordli ne (wl) must be eras ed before it can be reprogrammed as the flash cells can only wit hstand one gate disturb. this means that the entire sector containing the wl must be erased since it is impossible to erase a single wl. for the d-flash bank, the same wl can be programmed twice before erasing is required as the flash cells are able to withstand tw o gate disturbs. hence, it is possible to program the same wl, for example, wit h 16 bytes of data in two times (see figure 12 ). figure 12 d-flash programming note: when programming a d-flash wl the second time, the previously programmed flash memory cells (whether 0s or 1s) should be reprogrammed with 0s to retain its original contents and to prevent ?over-programming?. 0000 ?.. 0000 h 0000 ?.. 0000 h 32 bytes (1 wl) 1111 ?.. 1111 h 0000 ?.. 0000 h 16 bytes 16 bytes 0000 ?.. 0000 h 1111 ?.. 1111 h flash memory cells 32-byte write buffers 1111 ?.. 0000 h 1111 ?.. 1111 h 0000 ?.. 0000 h 1111 ?.. 0000 h program 1 program 2 note: a flash memory cell can be programmed from 0 to 1, but not from 1 to 0.
xc866 functional description data sheet 41 v1.1, 2006-12 3.4 interrupt system the xc800 core supports one non-maskable interrupt (nmi) and 14 maskable interrupt requests. in addition to the standard interru pt functions supported by the core, e.g., configurable interrupt priority and interr upt masking, the xc866 interrupt system provides extended interrupt s upport capabilities such as the mapping of each interrupt vector to several interrupt sources to increase the number of interrupt sources supported, and additional st atus registers for detecting and determining the interrupt source. 3.4.1 interrupt source figure 13 to figure 17 give a general overview of the interrupt sources and illustrates the request and control flags. figure 13 non-maskable interrupt request sources 0073 h nmiwdt nmicon.0 wdt overflow >=1 non maskable interrupt nmipll nmicon.1 pll loss of lock nmiflash flash operation complete nmivdd nmicon.4 vdd pre-warning fnmiwdt nmiisr.0 fnmipll nmiisr.1 fnmiflash nmiisr.2 fnmivdd nmiisr.4 nmivddp nmicon.5 vddp pre-warning fnmivddp nmiisr.5 nmiecc nmicon.6 flash ecc error fnmiecc nmiisr.6
xc866 functional description data sheet 42 v1.1, 2006-12 figure 14 interrupt request sources (part 1) highest lowest priority level bit-addressable request flag is cleared by hardware 000b h et0 ien0.1 tf0 tcon.5 timer 0 overflow 001b h et1 ien0.3 tf1 tcon.7 timer 1 overflow ip.1/ iph.1 ip.3/ iph.3 0023 h es ien0.4 ip.4/ iph.4 >=1 ri scon.0 ti scon.1 uart transmit 0003 h ex0 ien0.0 ie0 tcon.1 ip.0/ iph.0 0013 h ip.2/ iph.2 it0 tcon.0 ex1 ien0.2 ie1 tcon.3 it1 tcon.2 ien0.7 ea p o l l i n g s e q u e n c e uart receive exint0 exicon0.0/1 eint0 exint1 exicon0.2/3 eint1 exint0 ircon0.0 exint1 ircon0.1
xc866 functional description data sheet 43 v1.1, 2006-12 figure 15 interrupt request sources (part 2) bit-addressable request flag is cleared by hardware highest lowest priority level bit-addressable request flag is cleared by hardware 0043 h ex2 ien1.2 ip1.2/ iph1.2 exint2 exicon0.4/5 exint2 ircon0.2 eint2 002b h et2 ien0.5 ip.5/ iph.5 >=1 tf2 exf2 timer 2 overflow exen2 t2ex ien0.7 ea 004b h exm ien1.3 ip1.3/ iph1.3 >=1 p o l l i n g s e q u e n c e exint5 exicon1.2/3 exint5 ircon0.5 eint5 exint4 exicon1.0/1 exint4 ircon0.4 eint4 exint3 exicon0.6/7 exint3 ircon0.3 eint3 exint6 exicon1.4/5 exint6 ircon0.6 eint6 edges el t2mod.5 ndov f dcon.2 normal divider overflow fdcon.6 eofsyn fdcon.4 end of synch byte errsyn synch byte error syn en >=1 f dcon.5 t2_t2con.7 t2_t2con.6 t2_t2con.3 fdcon.6
xc866 functional description data sheet 44 v1.1, 2006-12 figure 16 interrupt request sources (part 3) ien0.7 highest lowest priority level bit-addressable request flag is cleared by hardware 003b h essc ien1.1 ip1.1/ iph1.1 >=1 tir ircon1.1 rir ircon1.2 eir ircon1.0 ssc error ssc transmit ssc receive 0033 h eadc ien1.0 ip1.0/ iph1.0 >=1 adcsrc0 ircon1.3 adc service request 0 adc service request 1 adcsrc1 ircon1.4 p o l l i n g s e q u e n c e ea 0053 h ccu6 node 0 ip1.4/ iph1.4 005b h ccu6 node 1 ip1.5/ iph1.5 0063 h ccu6 node 2 ip1.6/ iph1.6 006b h ccu6 node 3 ip1.7/ iph1.7 eccip0 ien1.4 eccip1 ien1.5 eccip2 ien1.6 eccip3 ien1.7 ccu6sr0 ircon3.0 ccu6sr1 ircon3.4 ccu6sr2 ircon4.0 ccu6sr3 ircon4.4
xc866 functional description data sheet 45 v1.1, 2006-12 figure 17 interrupt request sources (part 4) ccu6 interrupt node 0 ccu6 interrupt node 1 ccu6 interrupt node 2 ccu6 interrupt node 3 >=1 cc60 encc60r ienl.0 icc60r isl.0 encc60f ienl.1 icc60f isl.1 inpl.1 inpl.0 >=1 cc61 encc61r ienl.2 icc61r isl.2 encc61f ienl.3 icc61f isl.3 inpl.3 inpl.2 >=1 cc62 encc62r ienl.4 icc62r isl.4 encc62f ienl.5 icc62f isl.5 inpl.5 inpl.4 >=1 ent12om ienl.6 t12om isl.6 ent12pm ienl.7 t12pm isl.7 inph.3 inph.2 >=1 ent13cm ienh.0 t13cm ish.0 ent13pm ienh.1 t13pm ish.1 inph.5 inph.4 >=1 entrpf ienh.2 trpf ish.2 enwhe ienh.5 whe ish.5 inph.1 inph.0 t12 one match t12 period match t13 compare match t13 period match ctrap wrong hall event inpl.7 inpl.6 enche ienh.4 che ish.4 correct hall event >=1 enstr ienh.7 str ish.7 multi-channel shadow transfer
xc866 functional description data sheet 46 v1.1, 2006-12 3.4.2 interrupt source and vector each interrupt source has an associated interrupt vector addr ess. this vector is accessed to service the corresponding interrupt source request. the interrupt service of each interrupt source can be individually enabled or disabled via an enable bit. the assignment of the xc866 interrupt sources to the interrupt vector addresses and the corresponding interrupt source enable bits are summarized in table 17 . table 17 interrupt vector addresses interrupt source vector address assignment for xc866 enable bit sfr nmi 0073 h watchdog timer nmi nmiwdt nmicon pll nmi nmipll flash nmi nmiflash vddc prewarning nmi nmivdd vddp prewarning nmi nmivddp flash ecc nmi nmiecc xintr0 0003 h external interrupt 0 ex0 ien0 xintr1 000b h timer 0 et0 xintr2 0013 h external interrupt 1 ex1 xintr3 001b h timer 1 et1 xintr4 0023 h uart es xintr5 002b h t2 et2 fractional divider (normal divider overflow) lin
xc866 functional description data sheet 47 v1.1, 2006-12 xintr6 0033 h adc eadc ien1 xintr7 003b h ssc essc xintr8 0043 h external interrupt 2 ex2 xintr9 004b h external interrupt 3 exm external interrupt 4 external interrupt 5 external interrupt 6 xintr10 0053 h ccu6 inp0 eccip0 xintr11 005b h ccu6 inp1 eccip1 xintr12 0063 h ccu6 inp2 eccip2 xintr13 006b h ccu6 inp3 eccip3 table 17 interrupt vector addresses (cont?d)
xc866 functional description data sheet 48 v1.1, 2006-12 3.4.3 interrupt priority each interrupt source, except for nmi, can be individually programmed to one of the four possible priority levels. the nmi has the highest priority and supersedes all other interrupts. two pairs of interrupt priority registers (ip and iph, ip1 and iph1) are available to program the priority le vel of each non-nmi interrupt vector. a low-priority interrupt can be interrupted by a high-priority interrupt, but not by another interrupt of the same or lower priority. further, an interrupt of the highest priority cannot be interrupted by any other interrupt source. if two or more requests of different prio rity levels are received simultaneously, the request of the highest priority is serviced first. if requests of the same priority are received simultaneously, then an internal polling sequence determines which request is serviced first. thus, within each priority le vel, there is a second priority structure determined by the polling sequence shown in table 18 . table 18 priority structure within interrupt level source level non-maskable interrupt (nmi) (highest) external interrupt 0 1 timer 0 interrupt 2 external interrupt 1 3 timer 1 interrupt 4 uart interrupt 5 timer 2 , fractional divider, lin interrupts 6 adc interrupt 7 ssc interrupt 8 external interrupt 2 9 external interrupt [6:3] 10 ccu6 interrupt node pointer 0 11 ccu6 interrupt node pointer 1 12 ccu6 interrupt node pointer 2 13 ccu6 interrupt node pointer 3 14
xc866 functional description data sheet 49 v1.1, 2006-12 3.5 parallel ports the xc866 has 27 port pins organized into four parallel ports, port 0 (p0) to port 3 (p3). each pin has a pair of internal pull-up and pull-down devices that can be individually enabled or disabled. ports p0, p1 and p3 are bidirectional and can be used as general purpose input/output (gpio) or to perform al ternate input/output f unctions for the on-chip peripherals. when configured as an output, the open drain mode can be selected. port p2 is an input-only port, providing general purpose input functions, alternate input functions for the on-chip peripherals, and al so analog inputs for the analog-to-digital converter (adc). bidirectional port features: ? configurable pin direction ? configurable pull-up/pull-down devices ? configurable open drain mode ? transfer of data through digital input s and outputs (general purpose i/o) ? alternate input/output for on-chip peripherals input port features: ? configurable input driver ? configurable pull-up/pull-down devices ? receive of data through digital input (general purpose input) ? alternate input for on-chip peripherals ? analog input for adc module
xc866 functional description data sheet 50 v1.1, 2006-12 figure 18 general structure of bidirectional port px_od open drain control register px_data data register internal bus altdataout 2 px_altsel0 alternate select register 0 px_altsel1 alternate select register 1 altdatain pin px_puden pull-up/pull-down enable register px_pudsel pull-up/pull-down select register altdataout1 pad out in output driver input driver 00 schmitt trigger enable enable pull up device pull down device vddp enable enable px_dir direction register 01 10 altdataout 3 11
xc866 functional description data sheet 51 v1.1, 2006-12 figure 19 general structure of input port px_data data regist er internal bus altdatain px_puden pull-up/pull-down enable regist er px_pudsel pull-up/pull-down select register in input dri ver schmitt trigger analogin px_dir direct ion regist er pad pull up device pull down device vddp enable enable enable pin
xc866 functional description data sheet 52 v1.1, 2006-12 3.6 power supply system with embedded voltage regulator the xc866 microcontroller requires two different levels of power supply: ? 3.3 v or 5.0 v for the embedded voltage regulator (evr) and ports ? 2.5 v for the core, memory, on-chip oscillator, and peripherals figure 20 shows the xc866 power supply system . a power supply of 3.3 v or 5.0 v must be provided from the external power s upply pin. the 2.5 v power supply for the logic is generated by the evr. the evr helps to reduce the power consumption of the whole chip and the complexity of the application board design. the evr consists of a main voltage regulat or and a low power voltage regulator. in active mode, both voltage regulators ar e enabled. in power-down mode, the main voltage regulator is switched off, while the low power voltage regulator continues to function and provide power supply to the system with low power consumption. figure 20 xc866 power supply system evr features: ? input voltage ( v ddp ): 3.3 v/5.0 v ? output voltage ( v ddc ): 2.5 v 7.5% ? low power voltage regulator provided in power-down mode ? v ddc and v ddp prewarning detection ? v ddc brownout detection on-chip osc cpu & memory v ddc (2.5v) v ddp (3.3v/5.0v) v ssp gpio ports (p0-p3) evr peripheral logic flash adc pll xtal1& xtal2
xc866 functional description data sheet 53 v1.1, 2006-12 3.7 reset control the xc866 has five types of reset: power- on reset, hardware reset, watchdog timer reset, power-down wake-up reset, and brownout reset. when the xc866 is first powered up, the status of certain pins (see table 20 ) must be defined to ensure proper start operation of the device. at the end of a reset sequence, the sampled values are latched to select the desired boot op tion, which cannot be modified until the next power-on reset or hardware reset. this guarantees stable conditions during the norma l operation of the device. in order to power up the system pro perly, the external reset pin reset must be asserted until v ddc reaches 0.9* v ddc . the delay of external reset can be realized by an external capacitor at reset pin. this capacitor value must be selected so that v reset reaches 0.4 v, but not before v ddc reaches 0.9* v ddc. a typical application example is shown in figure 21 . v ddp capacitor value is 300 nf. v ddc capacitor value is 220 nf. the capacitor connected to reset pin is 100 nf. typically, the time taken for v ddc to reach 0.9* v ddc is less than 50 s once v ddp reaches 2.3v. hence, based on the condition that 10% to 90% v ddp (slew rate) is less than 500 s, the reset pin should be held low for 500 s typically. see figure 22 . figure 21 reset circuitry vssp vddp vddc vssc 3.3v/5v reset evr e.g. 300nf 220nf typ. 100nf xc866 30k
xc866 functional description data sheet 54 v1.1, 2006-12 figure 22 v ddp, v ddc and v reset during power-on reset the second type of reset in xc866 is the hardware reset. this reset function can be used during normal operation or when the chip is in power-down mode. a reset input pin reset is provided for the hardware reset. to ensure the recognition of the hardware reset, pin reset must be held low for at least 100 ns. the watchdog timer (wdt) module is also capabl e of resetting the device if it detects a malfunction in the system. another type of reset that needs to be de tected is a reset while the device is in power-down mode (wake-up reset). while t he contents of the static ram are undefined after a power-on reset, they are well defined after a wake-up reset from power-down mode. vddp reset wit h capacitor 2.3v vddc < 0.4v 0.9*vddc 0v 5v 5v 2.5v voltage voltage time time typ. < 50 us
xc866 functional description data sheet 55 v1.1, 2006-12 3.7.1 module reset behavior table 19 shows how the functions of the xc866 are affected by the various reset types. a ? ? means that this function is reset to its default state. 3.7.2 booting scheme when the xc866 is reset, it must identify the type of configuration with which to start the different modes once the reset sequence is complete. thus, boot configuration information that is required for activation of special modes and conditions needs to be applied by the external world through input pins. after power-on reset or hardware reset, the pins mbc, tms and p0.0 collectivel y select the different boot options. table 20 shows the available boot options in the xc866. table 19 effect of reset on device functions module/ function wake-up reset watchdog reset hardware reset power-on reset brownout reset cpu core peripherals on-chip static ram not affected, reliable not affected, reliable not affected, reliable affected, un- reliable affected, un- reliable oscillator, pll not affected port pins evr the voltage regulator is switched on not affected flash nmi disabled disabled table 20 xc866 boot selection mbc tms p0.0 type of mode pc start value 1 0 x user mode; on-chip osc/pll non-bypassed 0000 h 0 0 x bsl mode; on-chip osc/pll non-bypassed 0000 h 010 ocds mode 1) ; on-chip osc/pll non- bypassed 1) the ocds mode is not accessible if flash is protected. 0000 h 1 1 0 standalone user (jtag) mode 2) ; on-chip osc/pll non-bypassed (normal) 2) normal user mode with standard jtag (tck,tdi,tdo) pins for hot-attach purpose. 0000 h
xc866 functional description data sheet 56 v1.1, 2006-12 3.8 clock generation unit the clock generation unit (cgu) allows great flexibility in the clock generation for the xc866. the power consumption is indirectly proportional to the frequency, whereas the performance of the microcontroller is direct ly proportional to the frequency. during user program execution, the frequency can be programmed for an optimal ratio between performance and power consumption. th erefore the power consumption can be adapted to the actual application state. features: ? phase-locked loop (pll) for multiplying clock source by different factors ? pll base mode ? prescaler mode ? pll mode ? power-down mode support the cgu consists of an oscillator circuit and a pll.in the xc866, the oscillator can be from either of these two sour ces: the on-chip oscillator (10 mhz) or the external oscillator (4 mhz to 12 mhz). the term ?oscillator? is used to refer to both on-chip oscillator and external oscillator, unless othe rwise stated. after the reset, the on-chip oscillator will be used by default.the external oscillator can be selected via software. in addition, the pll provides a fail-safe logic to perform oscillat or run and loss-of-lock detection. this allows emergency routines to be executed for system recovery or to perform system shut down. figure 23 cgu block diagram pll core lock detect n:1 p:1 fvco fn fp osc fail detect osc fosc k:1 fsys ndiv oscr lock vcobyp 1 0 oscdisc
xc866 functional description data sheet 57 v1.1, 2006-12 the clock system provides three ways to generate the system clock: pll base mode the system clock is derived from the vco ba se (free running) fr equency clock divided by the k factor. prescaler mode (vco bypass operation) in vco bypass operation, the system clock is derived from the oscillator clock, divided by the p and k factors. pll mode the system clock is derived from the oscillat or clock, multiplied by the n factor, and divided by the p and k factors. both vco bypass and pll bypass must be inactive for this pll mode. the pll mode is used during normal system operation. . table 3-1 shows the settings of bits oscdisc and vcobyp for different clock mode selection. note: when oscillator clock is disconnected from pll, the clock mode is pll base mode regardless of the setting of vcobyp bit. system frequency selection for the xc866, the values of p and k are fixe d to ?1? and ?2?, respectively. in order to obtain the required system frequency, f sys , the value of n can be selected by bit ndiv for different oscillator inputs. table 21 provides examples on how f sys = 80 mhz can be obtained for the different oscillator sources. table 3-1 clock mode selection oscdisc vcobyp clock working modes 0 0 pll mode 01prescaler mode 1 0 pll base mode 1 1 pll base mode f sys f vcobase 1 k --- - = f sys f osc 1 pk ------------- = f sys f osc n pk ------------- =
xc866 functional description data sheet 58 v1.1, 2006-12 table 22 shows the vco range for the xc866. 3.8.1 recommended external oscillator circuits the oscillator circuit, a pierce oscillator, is designed to work with both, an external crystal oscillator or an external stable clock source. it basically consists of an inverting amplifier and a feedback element with xtal1 as input, and xtal2 as output. when using a crystal, a proper external oscill ator circuitry must be connected to both pins, xtal1 and xtal2. the crystal frequency can be within the range of 4 mhz to 12 mhz. additionally, it is necessary to have two load capacitances c x1 and c x2 , and depending on the crystal type, a series resistor r x2 , to limit the current. a test resistor r q may be temporarily inserted to meas ure the oscillation allowance (negative resistance) of the oscillator circuitry. r q values are typically specified by the crystal vendor. the c x1 and c x2 values shown in figure 24 can be used as starting points for the negative resistance evaluation and fo r non-productive systems. the exact values and related operating range are dependent on the crystal frequency and have to be determined and optimized toge ther with the crystal vendor using the negative resistance method. oscillation measurement with the fi nal target system is strongly recommended to verify the input amplitude at xtal1 and to determine the actual oscillation allowance (margin negative resistance) for the oscillator-crystal system. when using an external clock signal, the signal must be connected to xtal1. xtal2 is left open (unconnected). the oscillator can also be used in combination with a ceramic resonator. the final circuitry must also be verified by the resonator vendor. figure 24 shows the recommended external oscillator circuitries for both operating modes, external crystal mode and external input clock mode. table 21 system frequency (f sys =80mhz) oscillator fosc n p k fsys on-chip 10 mhz 16 1 2 80 mhz external 10 mhz 16 1 2 80 mhz 8 mhz 20 1 2 80 mhz 5 mhz 32 1 2 80 mhz table 22 vco range f vcomin f vcomax f vcofreemin f vcofreemax unit 150 200 20 80 mhz 100 150 10 80 mhz
xc866 functional description data sheet 59 v1.1, 2006-12 figure 24 external os cillator circuitries note: for crystal operation, it is str ongly recommended to measure the negative resistance in the final target system (lay out) to determine the optimum parameters for the oscillator operation. please refer to the minimum and maximum values of the negative resistance specified by the crystal supplier. clock_exosc xc866 oscillator v ss c x1 4 - 12 mhz c x2 xtal1 xtal2 xc866 oscillator xtal1 xtal2 external clock signal f osc f osc fundamental mode crystal crystal frequency c x1 , c x2 1) 4 mhz 8 mhz 10 mhz 12 mhz 12 pf 15 pf 18 pf 33 pf 1) note that these are evaluation start values! r x2 1) 0 0 0 0 r x2 r q v ss
xc866 functional description data sheet 60 v1.1, 2006-12 3.8.2 clock management the cgu generates all clock signals requir ed within the microcontroller from a single clock, f sys . during normal system operation, the typical frequencies of the different modules are as follow: ? cpu clock: cclk, sclk = 26.7 mhz ? ccu6 clock: fclk = 26.7 mhz ? other peripherals: pclk = 26.7 mhz ? flash interface clock: cclk3 = 80 mhz and cclk = 26.7 mhz in addition, different clock frequency can ou tput to pin clkout(p 0.0). the clock output frequency can further be divided by 2 using toggle latch (bit tlen is set to 1), the resulting output frequency has 50% duty cycle. figure 25 shows the clock distribution of the xc866. figure 25 clock generation from f sys pll n,p,k fsys clkrel fclk cclk sclk pclk /3 ccu6 core peripherals osc fosc flash interface cclk3 clkout corel couts toggle latch tlen
xc866 functional description data sheet 61 v1.1, 2006-12 for power saving purposes, the clocks may be disabled or slowed down according to table 23 . table 23 system frequency (f sys =80mhz) power saving mode action idle clock to the cpu is disabled. slow-down clocks to the cpu and all th e peripherals, including ccu6, are divided by a common programmable factor defined by bit field cmcon.clkrel. power-down oscillator and pll are switched off.
xc866 functional description data sheet 62 v1.1, 2006-12 3.9 power saving modes the power saving modes of the xc866 prov ide flexible power consumption through a combination of techniques, including: ? stopping the cpu clock ? stopping the clocks of in dividual system components ? reducing clock speed of some peripheral components ? power-down of the entire system with fast restart capability after a reset, the active mode (normal oper ating mode) is selected by default (see figure 26 ) and the system runs in the main system clock frequency. from active mode, different power saving modes can be selected by software. they are: ? idle mode ? slow-down mode ? power-down mode figure 26 transition between power saving modes power-down idle active slow-down set pd bit set pd bit set idle bit set idle bit set sd bit clear sd bit any interrupt & sd=0 exint0/rxd pin & sd=0 exint0/rxd pin & sd=1 any interrupt & sd=1
xc866 functional description data sheet 63 v1.1, 2006-12 3.10 watchdog timer the watchdog timer (wdt) provides a highly reliable and secure way to detect and recover from software or hardware failures. th e wdt is reset at a regular interval that is predefined by the user. the cpu must service the wdt within this interval to prevent the wdt from causing an xc866 syst em reset. hence, routine service of the wdt confirms that the system is functioning properly. this ensures that an accidental malfunction of the xc866 will be aborted in a user-specifi ed time period. in debug mode, the wdt is suspended and stops counting. therefore, th ere is no need to refresh the wdt during debugging. features: ? 16-bit watchdog timer ? programmable reload value for upper 8 bits of timer ? programmable window boundary ? selectable input frequency of f pclk /2 or f pclk /128 ? time-out detection with nmi generation and reset prewarning activation (after which a system reset will be performed) the wdt is a 16-bit timer incremented by a count rate of f pclk /2 or f pclk /128. this 16-bit timer is realized as two concatenated 8-bit timers. the upper 8 bits of the wdt can be preset to a user-programmable value via a watchdog service access in order to modify the watchdog expire time period. the lower 8 bits are reset on each service access. figure 27 shows the block diagram of the wdt unit. figure 27 wdt block diagram wdtrel mux wdt low byte 1:2 clear wdt control 1:128 wdt high byte wdtto wdtin f pclk logic enwdt enwdt_p wdtrs t overflow/time-out control & window-boundary control wdtwinb
xc866 functional description data sheet 64 v1.1, 2006-12 if the wdt is not serviced before the time r overflow, a system ma lfunction is assumed. as a result, the wdt nmi is triggered (a ssert wdtto) and the reset prewarning is entered. the prewarning period lasts for 30 h count, after which the system is reset (assert wdtrst). the wdt has a ?programmable window boundary? which disallows any refresh during the wdt?s count-up. a refresh during this window boundary constitutes an invalid access to the wdt, causing the reset prewar ning to be entered but without triggering the wdt nmi. the system will still be reset afte r the prewarning period is over. the window boundary is from 0000 h to the value obtained from the concatenation of wdtwinb and 00 h . after being serviced, the wdt continues c ounting up from the value ( * 2 8 ). the time period for an overflow of the wdt is programmable in two ways: ? the input frequency to the wdt can be selected to be either f pclk /2 or f pclk /128 ? the reload value wdtrel for the high byte of wdt can be programmed in register wdtrel the period, p wdt , between servicing the wdt and the next overflow can be determined by the following formula: if the window-boundary refresh feature of the wdt is enabled, the period p wdt between servicing the wdt and the next over flow is shortened if wdtwinb is greater than wdtrel, see figure 28 . this period can be calculated using the same formula by replacing wdtrel with wdtwinb. for this feature to be useful, wdtwinb should not be smaller than wdtrel. figure 28 wdt timing diagram p wdt 2 1wdtin + 6 () 2 16 wdtrel ? 2 8 () f pclk ----------------------------------------------------------------------------------------------------- - = wdtrel wdtwinb time count ffff h no refresh allowed refresh allowed
xc866 functional description data sheet 65 v1.1, 2006-12 table 24 lists the possible watchdog time range that can be achieved for different module clock frequencies . some numbers are rounded to 3 significant digits. table 24 watchdog time ranges reload value in wdtrel prescaler for f pclk 2 (wdtin = 0) 128 (wdtin = 1) 26.7 mhz 26.7 mhz ff h 19.2 s1.23 ms 7f h 2.48 ms 159 ms 00 h 4.92 ms 315 ms
xc866 functional description data sheet 66 v1.1, 2006-12 3.11 universal asynchronous receiver/transmitter the universal asynchronous receiver/transmitter (uart) provides a full-duplex asynchronous receiver/transmitter, i.e., it can transmit and receive simultaneously. it is also receive-buffered, i.e., it can commen ce reception of a second byte before a previously received byte has been read from t he receive register. however, if the first byte still has not been read by the time reception of the second byte is complete, one of the bytes will be lost. features: ? full-duplex asynchronous modes ? 8-bit or 9-bit data frames, lsb first ? fixed or variable baud rate ? receive buffered ? multiprocessor communication ? interrupt generation on the completion of a data transmission or reception the uart can operate in four asynchronous modes as shown in table 25 . data is transmitted on txd and received on rxd. there are several ways to generate the baud rate clock for the serial port, depending on the mode in which it is operating. in mode 0, the baud rate for the transfer is fixed at f pclk /2. in mode 2, the baud rate is generated internally based on the uart input clock and can be configured to either f pclk /32 or f pclk /64. the variable baud rate is set by either the underflow rate on the dedicated ba ud-rate generator, or by the overflow rate on timer 1. table 25 uart modes operating mode baud rate mode 0: 8-bit shift register f pclk /2 mode 1: 8-bit shift uart variable mode 2: 9-bit shift uart f pclk /32 or f pclk /64 mode 3: 9-bit shift uart variable
xc866 functional description data sheet 67 v1.1, 2006-12 3.11.1 baud-rate generator the baud-rate generator is based on a prog rammable 8-bit reload value, and includes divider stages (i.e., prescaler and fractional divider) for generating a wide range of baud rates based on its input clock f pclk , see figure 29 . figure 29 baud-rate generator circuitry the baud rate timer is a count-down timer and is clocked by either the output of the fractional divider (f mod ) if the fractional divider is enabled (fdcon.fden = 1), or the output of the prescaler (f div ) if the fractional divider is disabled (fden = 0). for baud rate generation, the fractional divider must be configured to fractional divider mode (fdcon.fdm = 0). this allows the baud rate c ontrol run bit bcon.r to be used to start or stop the baud rate timer. at each timer un derflow, the timer is reloaded with the 8-bit reload value in register bg and one clock pulse is generated for the serial channel. enabling the fractional divider in normal di vider mode (fden = 1 and fdm = 1) stops the baud rate timer and nullifies the effect of bit bcon.r. see section 3.12 . the baud rate (f br ) value is dependent on the following parameters: ? input clock f pclk ? prescaling factor (2 brpre ) defined by bit field brpre in register bcon ? fractional divider (step/256) defined by register fdstep (to be considered only if fractional divider is enabled and operating in fractional divider mode) fdstep 1 fdm adder fdres fden&fdm clk fract ional divider prescaler ndov ?0? fden 00 01 10 11 11 10 01 00 0 1 (overflow) 0 f br 8-bit baud rat e timer 8-bit reload value r 0 1 f div f div f pcl k f mod
xc866 functional description data sheet 68 v1.1, 2006-12 ? 8-bit reload value (br_value) for the b aud rate timer defined by register bg the following formulas calculate the final b aud rate without and with the fractional divider respectively: the maximum baud rate that can be generated is limited to f pclk /32. hence, for a module clock of 26.7 mhz, the maximum achievable baud rate is 0.83 mbaud. standard lin protocal can support a maximum baud rate of 20khz, the baud rate accuracy is not critical and the fractional divider can be disabled. only the prescaler is used for auto baud rate calculation. for li n fast mode, which supports the baud rate of 20khz to 115.2khz, the higher baud rates r equire the use of the fractional divider for greater accuracy. table 26 lists the various commonly used baud rates with their corresponding parameter settings and deviation errors. the fractional divider is disabled and a module clock of 26.7 mhz is used. the fractional divider allows baud rates of higher accuracy (lower deviation error) to be generated. table 27 lists the resulting deviation errors from generating a baud rate of table 26 typical baud rates for uart with fractional divider disabled baud rate prescaling factor (2 brpre ) reload value (br_value + 1) deviation error 19.2 kbaud 1 (brpre=000 b ) 87 (57 h ) -0.22 % 9600 baud 1 (brpre=000 b )174 (ae h ) -0.22 % 4800 baud 2 (brpre=001 b )174 (ae h ) -0.22 % 2400 baud 4 (brpre=010 b )174 (ae h ) -0.22 % baud rate f pclk 16 2 brpre br_value 1 + () ----------------------------------------------------------------------------------- where 2 brpre br_value 1 + () 1 > = baud rate f pclk 16 2 brpre br_value 1 + () ----------------------------------------------------------------------------------- step 256 -------------- - =
xc866 functional description data sheet 69 v1.1, 2006-12 115.2 khz, using different module clock frequencies. the fractional divider is enabled (fractional divider mode) and the corresponding parameter settings are shown. table 27 deviation error for uart with fractional divider enabled f pclk prescaling factor (2 brpre ) reload value (br_value + 1) step deviation error 26.67 mhz 1 10 (a h ) 177 (b1 h ) +0.03 % 13.33 mhz 1 7 (7 h )248 (f8 h ) +0.11 % 6.67 mhz 1 3 (3 h )212 (d4 h ) -0.16 %
xc866 functional description data sheet 70 v1.1, 2006-12 3.11.2 baud rate generation using timer 1 in uart modes 1 and 3, timer 1 can be used for generating the variable baud rates. in theory, this timer could be used in any of its modes. but in practice, it should be set into auto-reload mode (timer 1 mode 2), with its high byte set to the appropriate value for the required baud rate. the baud rate is determined by the timer 1 overflow rate and the value of smod as follows: [3.1] 3.12 normal divider mode (8-bit auto-reload timer) setting bit fdm in register fdcon to 1 conf igures the fractional divider to normal divider mode, while at the same time disables baud rate generation (see figure 29 ). once the fractional divider is enabled (fden = 1), it fu nctions as an 8-bit auto-reload timer (with no relation to baud rate generation) and count s up from the reload value with each input clock pulse. bit field result in register fdres represents the timer value, while bit field step in register fdstep defines the reload value. at each timer overflow, an overflow flag (fdcon.ndov) will be set and an interrupt request generated. this gives an output clock f mod that is 1/n of the input clock f div , where n is defined by 256 - step. the output frequency in normal divider mode is derived as follows: [3.2] mode 1, 3 baud rate 2 smod f pclk 32 2 256 th1 ? () ---------------------------------------------------- - = f mod f div 1 256 step ? ----------------------------- - =
xc866 functional description data sheet 71 v1.1, 2006-12 3.13 lin protocol the uart can be used to support the local in terconnect network (lin) protocol for both master and slave operations. the lin baud rate detection feature provides the capability to detect the baud rate within lin protocol us ing timer 2. this allows the uart to be synchronized to the lin baud rate for data transmission and reception. lin is a holistic communication concept for local interconnected networks in vehicles. the communication is based on the sci (uart) data format, a single-master/multiple- slave concept, a clock synchronization for nodes without stabilized time base. an attractive feature of lin is self-synchr onization of the slave nodes without a crystal or ceramic resonator, which signific antly reduces the cost of ha rdware platform. hence, the baud rate must be calculated and returned with every message frame. the structure of a lin frame is shown in figure 30 . the frame consists of the: ? header, which comprises a break (13-bit time low), synch byte (55 h ), and id field ? response time ? data bytes (according to uart protocol) ? checksum figure 30 structure of lin frame 3.13.1 lin header transmission lin header transmission is only applicable in master mode. in the lin communication, a master task decides when and which frame is to be transferred on the bus. it also identifies a slave task to provide the data transported by each fr ame. the information needed for the handshaking between the mast er and slave tasks is provided by the master task through the header portion of the frame. the header consists of a break and synch pattern followed by an identifier. among these three fields, only the break pattern canno t be transmitted as a normal 8-bit uart data. frame slot frame response inter- frame space response space header synch protected identifier data 1 data 2 data n checksum
xc866 functional description data sheet 72 v1.1, 2006-12 the break must contain a dominant value of 13 bits or more to ensure proper synchronization of slave nodes. in the lin communication, a slave task is required to be synchronized at the beginning of the protected identifier fi eld of frame. for this purpose , every frame starts with a sequence consisting of a break field followed by a synch byte field. this sequence is unique and provides enough information for any slave task to detect the beginning of a new frame and be synchronized at t he start of the identifier field. upon entering lin communication, a connecti on is established and the transfer speed (baud rate) of the serial communication part ner (host) is automa tically synchronized in the following steps: step 1: initialize interface for recept ion and timer for baud rate measurement step 2: wait for an incoming lin frame from host step 3: synchronize the baud rate to the host step 4: enter for master request frame or for slave response frame note: re-synchronization and setup of baud rate are always done for every master request header or slave response header lin frame.
xc866 functional description data sheet 73 v1.1, 2006-12 3.14 high-speed synchronous serial interface the high-speed synchronous serial inte rface (ssc) supports full-duplex and half-duplex synchronous communication. the serial clock signal can be generated by the ssc internally (master mode), using its own 16-bit baud-rate generator, or can be received from an external master (slave mode). data width, shift direction, clock polarity and phase are programmable. this allows communication with spi-compatible devices or devices using other synchronous serial interfaces. features: ? master and slave mode operation ? full-duplex or half-duplex operation ? transmit and receive buffered ? flexible data format ? programmable number of data bits: 2 to 8 bits ? programmable shift directio n: lsb or msb shift first ? programmable clock polarity: idle low or high state for the shift clock ? programmable clock/data phase: data shift with leading or trailing edge of the shift clock ? variable baud rate ? compatible with serial peripheral interface (spi) ? interrupt generation ? on a transmitter empty condition ? on a receiver full condition ? on an error condition (receive, phase, baud rate, transmit error)
xc866 functional description data sheet 74 v1.1, 2006-12 data is transmitted or received on lines txd and rxd, which are normally connected to the pins mtsr (master transmit/slave receive) and mrst (master receive/slave transmit). the clock signal is output via line ms_clk (master serial shift clock) or input via line ss_clk (slave serial shift clock). both lines are normally connected to the pin sclk. transmission and reception of data are double-buffered. figure 31 shows the block diagram of the ssc. figure 31 ssc block diagram pclk ss_clk rir tir eir receive int. request transmit int. request error int. request control status txd(mas ter) rxd(slave) shift clock ms_clk rxd(master) txd(slave) internal bus baud-rate generator clock control ssc control block register con pin control 16-bit shift register transmit buffer register tb receive buffer register rb
xc866 functional description data sheet 75 v1.1, 2006-12 3.15 timer 0 and timer 1 timers 0 and 1 are co unt-up timers which are incremen ted every machine cycle, or in terms of the input clock, every 2 pclk cycles. they are fully compatible and can be configured in four different operating modes for use in a variety of applications, see table 28 . in modes 0, 1 and 2, the two timers operate independently, but in mode 3, their functions are specialized. table 28 timer 0 and timer 1 modes mode operation 0 13-bit timer the timer is essentially an 8-bit counter with a divide-by-32 prescaler. this mode is included solely for compatibility with intel 8048 devices. 1 16-bit timer the timer registers, tlx and thx, are concatenated to form a 16-bit counter. 2 8-bit timer wi th auto-reload the timer register tlx is reloaded with a user-defined 8-bit value in thx upon overflow. 3 timer 0 operates as two 8-bit timers the timer registers, tl0 and th0, oper ate as two separate 8-bit counters. timer 1 is halted and retains its count even if enabled.
xc866 functional description data sheet 76 v1.1, 2006-12 3.16 timer 2 timer 2 is a 16-bit general purpose timer (t hl2) that has two modes of operation, a 16-bit auto-reload mode and a 16-bit one c hannel capture mode. if the prescalar is disabled, timer 2 counts with an input clock of pclk/12. timer 2 continues counting as long as it is enabled. table 29 timer 2 modes mode description auto-reload up/down count disabled ? count up only ? start counting from 16-bit reload value, overflow at ffff h ? reload event configurable for trigger by overflow condition only, or by negative/positive edge at input pin t2ex as well ? programmble reload value in register rc2 ? interrupt is generated with reload event up/down count enabled ? count up or down, direction determined by level at input pin t2ex ? no interrupt is generated ? count up ? start counting from 16-bit reload value, overflow at ffff h ? reload event triggered by overflow condition ? programmble reload value in register rc2 ? count down ? start counting from ffff h , underflow at value defined in register rc2 ? reload event triggered by underflow condition ? reload value fixed at ffff h channel capture ? count up only ? start counting from 0000 h , overflow at ffff h ? reload event triggered by overflow condition ? reload value fixed at 0000 h ? capture event triggered by falling/rising edge at pin t2ex ? captured timer value stored in register rc2 ? interrupt is generated wit h reload or capture event
xc866 functional description data sheet 77 v1.1, 2006-12 3.17 capture/compare unit 6 the capture/compare unit 6 (ccu6) provides two independent timers (t12, t13), which can be used for pulse width modulation (pwm) generation, especially for ac-motor control. the ccu6 also supports special control modes for block commutation and multi-phase machines. the timer t12 can function in capture and/or compare mode for its three channels. the timer t13 can work in compare mode only. the multi-channel control unit generates ou tput patterns, whic h can be modulated by t12 and/or t13. the modulation sources can be selected and combined for the signal modulation. timer t12 features: ? three capture/compare channels , each channel can be used either as a capture or as a compare channel ? supports generation of a three-phase pwm (six outputs, individual signals for highside and lowside switches) ? 16-bit resolution, maximum count frequency = peripheral clock frequency ? dead-time control for each channel to avoid short-circuits in the power stage ? concurrent update of the re quired t12/13 registers ? generation of center-aligned and edge-aligned pwm ? supports single-shot mode ? supports many interrupt request sources ? hysteresis-like control mode timer t13 features: ? one independent compare channel with one output ? 16-bit resolution, maximum count frequency = peripheral clock frequency ? can be synchronized to t12 ? interrupt generation at period-match and compare-match ? supports single-shot mode additional features: ? implements block commutation for brushless dc-drives ? position detection via hall-sensor pattern ? automatic rotational speed measurement for block commutation ? integrated error handling ? fast emergency stop without cpu load via external signal (ctrap ) ? control modes for multi-channel ac-drives ? output levels can be selected and adapted to the power stage
xc866 functional description data sheet 78 v1.1, 2006-12 the block diagram of the ccu6 module is shown in figure 32 . figure 32 ccu6 block diagram channel 0 channel 1 channel 2 t12 dead- time control input / output control cc62 co ut62 cc61 co ut61 cc60 co ut60 co ut63 ct rap channel 3 t13 ccpos0 1 1 1 2 2 2 1 st art compare capture 3 multi- channel control address decoder clock control interrupt control trap control compare compar e compar e compar e 1 trap input port control ccpos1 ccpos2 output select output select 3 hall input module kernel ccu6_block_diagram t13hr t12hr
xc866 functional description data sheet 79 v1.1, 2006-12 3.18 analog-to-digital converter the xc866 includes a high-performance 10-bi t analog-to-digital converter (adc) with eight multiplexed analog input channels. the adc uses a successive approximation technique to convert the analog voltage levels from up to eight different sources. the analog input channels of the adc are available at port 2. features: ? successive approximation ? 8-bit or 10-bit resolution (tue of 1 lsb and 2 lsb, respectively) ? eight analog channels ? four independent result registers ? result data protection for slow cpu access (wait-for-read mode) ? single conversion mode ? autoscan functionality ? limit checking for conversion results ? data reduction filter (accumulation of up to 2 conversion results) ? two independent conversion reques t sources with programmable priority ? selectable conversion request trigger ? flexible interrupt generation with configurable service nodes ? programmable sample time ? programmable clock divider ? cancel/restart feature for running conversions ? integrated sample and hold circuitry ? compensation of offset errors ? low power modes
xc866 functional description data sheet 80 v1.1, 2006-12 3.18.1 adc clocking scheme a common module clock f adc generates the various clock signals used by the analog and digital parts of the adc module: ?f adca is input clock for the analog part. ?f adci is internal clock for the analog part (defin es the time base for conversion length and the sample time). this clock is generated internally in the analog part, based on the input clock f adca to generate a correct duty cycle for the analog components. ?f adcd is input clock for the digital part. the internal clock for the analog part f adci is limited to a maximum frequency of 10 mhz. therefore, the adc clock pr escaler must be programmed to a value that ensures f adci does not exceed 10 mhz. the prescaler ratio is selected by bit field ctc in register globctr. a prescaling ratio of 32 can be selected when the maximum performance of the adc is not required. figure 33 adc clocking scheme anal og components f adci f adc = f pclk mux arbi ter regi sters interrupts anal og part di gi tal part f adcd f adca 32 clock prescaler ctc 2
xc866 functional description data sheet 81 v1.1, 2006-12 for module clock f adc = 26.7 mhz, the analog clock f adci frequency can be selected as shown in table 30 . as f adci cannot exceed 10 mhz, bit field ctc should not be set to 00 b when f adc is 26.7 mhz. during slow-down mode where f adc may be reduced to 13.3 mhz, 6.7 mhz etc., ctc can be set to 00 b as long as the divided analog clock f adci does not exceed 10 mhz. however, it is important to note th at the conversion error could increase due to loss of charges on the capacitors, if f adc becomes too low during slow-down mode. 3.18.2 adc conversion sequence the analog-to-digital conversion procedur e consists of the following phases: ? synchronization phase (t syn ) ? sample phase (t s ) ? conversion phase ? write result phase (t wr ) figure 34 adc conv ersion timing table 30 f adci frequency selection module clock f adc ctc prescaling ratio analog clock f adci 26.7 mhz 00 b 2 13.3 mhz (n.a) 01 b 3 8.9mhz 10 b 4 6.7mhz 11 b (default) 32 833.3 khz t s t conv t wr sample bit busy bit conversion phase sample phase write result phase conversion start trigger source interrupt result interrupt t syn channel interrupt f adci
xc866 functional description data sheet 82 v1.1, 2006-12 3.19 on-chip debug support the on-chip debug support (ocds) provides the basic functionality required for the software development and debugging of xc800-based systems. the ocds design is based on these principles: ? use the built-in debug functionality of the xc800 core ? add a minimum of hardware overhead ? provide support for most of the operations by a monitor program ? use standard interfaces to communicate with the host (a debugger) features: ? set breakpoints on instruction addres s and within a specified address range ? set breakpoints on internal ram address ? support unlimited software breakpoints in flash/ram code region ? process external breaks ? step through the program code the ocds functional blocks are shown in figure 35 . the monitor mode control (mmc) block at the center of ocds system brin gs together control signals and supports the overall functionality. the mmc communicates with the xc800 core, primarily via the debug interface, and also receives reset and clock signals. after processing memory address and control signals from the core, the mmc provides proper access to the dedicated extra-memories: a monitor rom (holding the code) and a monitor ram (for work-data and monitor-sta ck). the ocds system is accessed through the jtag 1) , which is an interface dedicated exclusively for testing and debugging activities and is not normally used in an application. the dedicated mbc pin is used for external configuration and debugging control. note: all the debug functionality described here can normally be used only after xc866 has been started in ocds mode. 1) the pins of the jtag port can be assigned to eith er port 0 (primary) or ports 1 and 2 (secondary). user must set the jtag pins (tck and tdi) as input during connection with the ocds system.
xc866 functional description data sheet 83 v1.1, 2006-12 figure 35 ocds block diagram 3.19.1 jtag id register this is a read-only register located inside th e jtag module, and is used to recognize the device(s) connected to the jtag interf ace. its content is shifted out when instruction register contains the idcode command (opcode 04 h ), and the same is also true immediately after reset. the jtag id register contents fo r the xc866 devices are given in table 31 . table 31 jtag id summary device type device name jtag id flash xc866l-4fr 1010 0083 h xc866-4fr 100f 5083 h xc866l-2fr 1010 2083 h xc866-2fr 1010 1083 h xc866l-1fr 1013 8083 h xc866-1fr 1013 8083 h jtag module monitor & bootstrap loader control line jtag memory control unit user program memory xc800 prog & iram addresses debug interface reset clock tms tck tdi tdo tck tdi tdo control memory control primary debug interface system control unit boot/ monitor rom monitor ram user internal ram reset reset clock prog data monitor mode control mbc - parts of ocds wdt suspend ocds_xc800-block_diagram-um-v0.2
xc866 functional description data sheet 84 v1.1, 2006-12 3.20 identification register the xc866 identity register is located at page 1 of address b3 h . rom xc866l-4rr 1013 9083 h xc866-4rr 1013 9083 h xc866l-2rr 1013 9083 h xc866-2rr 1013 9083 h id identity register reset value: 0000 0010 b 76543210 prodid verid rr field bits type description verid [2:0] r version id 010 b prodid [7:3] r product id 00000 b table 31 jtag id summary
xc866 electrical parameters data sheet 85 v1.1, 2006-12 4 electrical parameters chapter 4 provides the characteristics of th e electrical parameters which are implementation-specific for the xc866. note: the electrical parameters are valid for the xc866-4fr and xc866-2fr. the electrical parameters for the rom variants and xc866-1fr are preliminary, differences from xc866-4fr and xc866-2fr are stated explicitly. 4.1 general parameters the general parameters are described here to aid the users in interpreting the parameters mainly in section 4.2 and section 4.3 . 4.1.1 parameter interpretation the parameters listed in this section represent partly the characteristics of the xc866 and partly its requirements on the system. to aid interpreting the parameters easily when evaluating them for a design, they are indicated by the abbreviations in the ?symbol? column: ? cc these parameters indicate c ontroller c haracteristics, which are distinctive features of the xc866 and must be regarded for a system design. ? sr these parameters indicate s ystem r equirements, which must be provided by the microcontroller system in whic h the xc866 is designed in.
xc866 electrical parameters data sheet 86 v1.1, 2006-12 4.1.2 absolute maximum rating maximum ratings are the extreme limits to which the xc866 can be subjected to without permanent damage. table 32 absolute maximum rating parameters note: stresses above those listed under ?absolute maximum ratings? may cause permanent damage to the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of th is specification is not im plied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. during absolute maximum rating overload conditions (v in >v ddp or v in xc866 electrical parameters data sheet 87 v1.1, 2006-12 4.1.3 operating conditions the following operating conditions must not be exceeded in order to ensure correct operation of the xc866. all parameters m entioned in the following table refer to these operating conditions, unless otherwise noted. table 33 operating condition parameters parameter symbol limit values unit notes/ conditions min. max. digital power supply voltage v ddp 4.5 5.5 v 5v range 3.0 3.6 v 3.3v range digital ground voltage v ss 0v digital core supply voltage v ddc 2.3 2.7 v system clock frequency 1) 1) f sys is the pll output clock. during normal operating mode, cpu clock is f sys / 3. please refer to figure 25 for detailed description. f sys 74 86 mhz ambient temperature t a -40 85 c saf-xc866... -40 125 c sak-xc866...
xc866 electrical parameters data sheet 88 v1.1, 2006-12 4.2 dc parameters 4.2.1 input/output characteristics table 34 input/output characteristics (operating conditions apply) parameter symbol limit valu es unit test conditions remarks min. max. v ddp = 5v range output low voltage v ol cc ? 1.0 v i ol =15ma ?0.4v i ol =5ma output high voltage v oh cc v ddp - 1.0 ?v i oh =-15ma v ddp - 0.4 ?v i oh =-5ma input low voltage on port pins (all except p0.0 & p0.1) v ilp sr ? 0.3 v ddp v cmos mode input low voltage on p0.0 & p0.1 v ilp0 sr -0.2 0.3 v ddp v cmos mode input low voltage on reset pin v ilr sr ? 0.3 v ddp v cmos mode input low voltage on tms pin v ilt sr ? 0.3 v ddp v cmos mode input high voltage on port pins (all except p0.0 & p0.1) v ihp sr 0.7 v ddp ?vcmos mode input high voltage on p0.0 & p0.1 v ihp0 sr 0.7 v ddp v ddp v cmos mode input high voltage on reset pin v ihr sr 0.7 v ddp ?vcmos mode input high voltage on tms pin v iht sr 0.75 v ddp ?vcmos mode input hysteresis 1) hys cc 0.08 v ddp ?vcmos mode input low voltage at xtal1 v ilx sr v ss - 0.5 0.3 v ddc v
xc866 electrical parameters data sheet 89 v1.1, 2006-12 input high voltage at xtal1 v ihx sr 0.7 v ddc v ddc +0.5 v pull-up current i pu sr ? -10 a v ih,min -150 ? a v il,max pull-down current i pd sr ? 10 a v il,max 150 ? a v ih,min input leakage current 2) i oz1 cc -1 1 a 0 < v in < v ddp , t a 125 c , xc866-4fr and xc866-2fr -2.5 1 a 0 < v in < v ddp , t a 125 c, xc866-1fr and rom device input current at xtal1 i ilx cc -10 10 a overload current on any pin i ov sr -5 5 ma absolute sum of overload currents | i ov | sr ?25ma 3) maximum current per pin (excluding v ddp and v ss ) i m sr ? 15 ma maximum current for all pins (excluding v ddp and v ss ) | i m | sr ?60ma maximum current into v ddp i mvddp sr ?80ma maximum current out of v ss i mvss sr ?80ma v ddp = 3.3v range output low voltage v ol cc ? 1.0 v i ol =8ma ?0.4v i ol =2.5ma table 34 input/output characteristics (operating conditions apply) parameter symbol limit valu es unit test conditions remarks min. max.
xc866 electrical parameters data sheet 90 v1.1, 2006-12 output high voltage v oh cc v ddp - 1.0 ?v i oh =-8ma v ddp - 0.4 ?v i oh =-2.5ma input low voltage on port pins (all except p0.0 & p0.1) v ilp sr ? 0.3 v ddp v cmos mode input low voltage on p0.0 & p0.1 v ilp0 sr -0.2 0.3 v ddp v cmos mode input low voltage on reset pin v ilr sr ? 0.3 v ddp v cmos mode input low voltage on tms pin v ilt sr ? 0.3 v ddp v cmos mode input high voltage on port pins (all except p0.0 & p0.1) v ihp sr 0.7 v ddp ?vcmos mode input high voltage on p0.0 & p0.1 v ihp0 sr 0.7 v ddp v ddp v cmos mode input high voltage on reset pin v ihr sr 0.7 v ddp ?vcmos mode input high voltage on tms pin v iht sr 0.75 v ddp ?vcmos mode input hysteresis 1) hys cc 0.03 v ddp ?vcmos mode input low voltage at xtal1 v ilx sr v ss - 0.5 0.3 v ddc v input high voltage at xtal1 v ihx sr 0.7 v ddc v ddc +0.5 v pull-up current i pu sr ? -5 a v ih,min -50 ? a v il,max pull-down current i pd sr ? 5 a v il,max 50 ? a v ih,min table 34 input/output characteristics (operating conditions apply) parameter symbol limit valu es unit test conditions remarks min. max.
xc866 electrical parameters data sheet 91 v1.1, 2006-12 input leakage current 2) i oz1 cc -1 1 a 0 < v in < v ddp , t a 125 c , xc866-4fr and xc866-2fr -2.5 1 a 0 < v in < v ddp , t a 125 c, xc866-1fr and rom device input current at xtal1 i ilx cc - 10 10 a overload current on any pin i ov sr -5 5 ma absolute sum of overload currents | i ov | sr ?25ma 3) maximum current per pin (excluding v ddp and v ss ) i m sr ? 15 ma maximum current for all pins (excluding v ddp and v ss ) | i m | sr ?60ma maximum current into v ddp i mvddp sr ?80ma maximum current out of v ss i mvss sr ?80ma 1) not subjected to production test, verified by design/c haracterization. hysteresis is implemented to avoid meta stable states and switching due to internal ground bounc e. it cannot be guaranteed that it suppresses switching due to external system noise. 2) an additional error current ( i inj ) will flow if an overload current flows through an adjacent pin. tms pin and reset pin have internal pull devices and are not inclu ded in the input leakage current characteristic. 3) not subjected to production test, ve rified by design/characterization. table 34 input/output characteristics (operating conditions apply) parameter symbol limit valu es unit test conditions remarks min. max.
xc866 electrical parameters data sheet 92 v1.1, 2006-12 4.2.2 supply threshold characteristics figure 36 supply threshold parameters table 35 supply threshold parameters (operating conditions apply) parameters symbol limit values unit remarks min. typ. max. v ddc prewarning voltage 1) 1) detection is disabled in power-down mode. v ddcpw cc 2.2 2.3 2.4 v v ddc brownout voltage in active mode 1) v ddcbo cc 2.0 2.1 2.2 v xc866-4fr, xc866-2fr 2.0 2.1 2.3 v xc866-1fr, rom device ram data retention voltage v ddcrdr cc 0.9 1.0 1.1 v v ddc brownout voltage in power-down mode 2) 2) detection is enabled in both active and power-down mode. v ddcbopd cc 1.3 1.5 1.7 v v ddp prewarning voltage 3) 3) detection is enabled for external power supply of 5.0v. detection must be disabled for external power supply of 3.3v. v ddppw cc 3.4 4.0 4.6 v power-on reset voltage 2) 4) 4) the reset of evr is extended by 300 s typically a fter the vddc reaches the power-on reset voltage. v ddcpor cc 1.3 1.5 1.7 v vddp vddc v ddppw v ddcpor v ddcpw v ddcbo v ddcbopd 5.0v 2.5v v ddcrdr
xc866 electrical parameters data sheet 93 v1.1, 2006-12 4.2.3 adc characteristics the values in the table below are given for an analog power supply between 4.5 v to 5.5 v. the adc can be used with an analog power supply down to 3 v. but in this case, the analog parameters may show a re duced performance. all ground pins ( v ss ) must be externally connected to one single star point in the system. the voltage difference between the ground pins must not exceed 200mv. table 36 adc characteristics (o perating conditions apply; v ddp = 5v range) parameter symbol limit values unit test conditions/ remarks min. typ . max. analog reference voltage v aref sr v agnd + 1 v ddp v ddp + 0.05 v analog reference ground v agnd sr v ss - 0.05 v ss v aref - 1 v analog input voltage range v ain sr v agnd ? v aref v adc clocks f adc ? 20 40 mhz module clock f adci ? ? 10 mhz internal analog clock see figure 33 sample time t s cc (2 + inpcr0.stc) t adci s conversion time t c cc see section 4.2.3.1 s total unadjusted error tue 1) cc ? ? 1 lsb 8-bit conversion. 2) ?? 2 lsb 10-bit conversion. differential nonlinearity dnl cc ? 1 ? lsb 10-bit conversion 2) integral nonlinearity inl cc ? 1 ? lsb 10-bit conversion 2) offset off cc ? 1 ? lsb 10-bit conversion 2) gain gain cc ? 1 ? lsb 10-bit conversion 2) switched capacitance at the reference voltage input c arefsw cc ?1020pf 2)3)
xc866 electrical parameters data sheet 94 v1.1, 2006-12 switched capacitance at the analog voltage inputs c ainsw cc ?57pf 2)4) input resistance of the reference input r aref cc ? 1 2 k ? 2) input resistance of the selected analog channel r ain cc ? 1 1.5 k ? 2) 1) tue is tested at v aref =5.0v, v agnd =0v , v ddp =5.0v. 2) not subject to production test, veri fied by design/characterization. 3) this represents an equivalent switched capacitance. this capacitance is not switched to the reference voltage at once. instead of this, smaller capacitances ar e successively switched to the reference voltage. 4) the sampling capacity of the conversion c-network is pre-charged to v aref /2 before connecting the input to the c-network. because of the parasitic elemen ts, the voltage measured at anx is lower than v aref /2. table 36 adc characteristics (ope rating conditions apply; v ddp = 5v range) parameter symbol limit values unit test conditions/ remarks min. typ . max.
xc866 electrical parameters data sheet 95 v1.1, 2006-12 figure 37 adc input circuits 4.2.3.1 adc conversion timing conversion time, t c =t adc ( 1 + r (3 + n + stc) ) , where r = ctc + 2 for ctc = 00 b , 01 b or 10 b , r = 32 for ctc = 11 b , ctc = conversion time control (globctr.ctc), stc = sample time control (inpcr0.stc), n = 8 or 10 (for 8-bit and 10-bit conversion respectively), t adc =1/f adc v agndx r ext analog input circuitry v ain c ext anx c ainsw r ain, on v agndx reference voltage input circuitry c arefsw r aref, on v arefx v aref
xc866 electrical parameters data sheet 96 v1.1, 2006-12 4.2.4 power supply current table 37 power supply current parameters (operating conditions apply; v ddp = 5v range ) parameter symbol limit values unit test condition remarks typ. 1) 1) the typical i ddp values are periodically measured at t a =+25 c and v ddp =5.0v. max. 2) 2) the maximum i ddp values are measured under worst case conditions ( t a = + 125 c and v ddp =5.5v). v ddp = 5v range active mode i ddp 22.6 24.5 ma 3) 3) i ddp (active mode) is measured with: cpu clock and input clock to all peripherals running at 26.7 mhz(set by on-chip oscillator of 10 mhz and ndiv in pll_con to 0010 b ), r eset = v ddp , no load on ports. idle mode i ddp 17.2 19.7 ma xc866-4fr, xc866-2fr 4) 4) i ddp (idle mode) is measured with: cpu clock disabled, watchdog timer disabled, input clock to all peripherals enabled and running at 26.7 mhz, reset = v ddp , no load on ports. 12.5 14 ma xc866-1fr, rom device 4) active mode with slow-down enabled i ddp 7.2 8.2 ma xc866-4fr, xc866-2fr 5) 5) i ddp (active mode with slow-down mode) is measured with: cpu clock and input clock to all peripherals running at 833 khz by setting clkrel in cmcon to 0101 b , reset = v ddp , no load on ports. 5.6 7.5 ma xc866-1fr, rom device 5) idle mode with slow-down enabled i ddp 7.1 8 ma xc866-4fr, xc866-2fr 6) 6) i ddp (idle mode with slow-down mode) is measured with: cpu clock disabled, watchdog timer disabled, input clock to all peripherals enabled and running at 833 khz by setting clkrel in cmcon to 0101 b , reset = v ddp , no load on ports. 5.1 7.2 ma xc866-1fr, rom device 6)
xc866 electrical parameters data sheet 97 v1.1, 2006-12 table 38 power down current (operating conditions apply; v ddp = 5v range ) parameter symbol limit values unit test condition remarks typ. 1) 1) the typical i pdp values are measured at v ddp =5.0v. max. 2) 2) the maximum i pdp values are measured at v ddp =5.5v. v ddp = 5v range power-down mode 3) 3) i pdp (power-down mode) has a maximum value of 200 a at t a = + 125 c. i pdp 110a t a =+25 c. 4) 4) i pdp (power-down mode) is measured with: r eset = v ddp , v agnd = v ss , rxd/int0 = v ddp ; rest of the ports are programmed to be input with either internal pull de vices enabled or driven externally to ensure no floating inputs. -30a t a =+85 c, xc866- 4fr, xc866-2fr 4) 5) 5) not subject to production test, ve rified by design/characterization. -35a t a =+85 c, xc866- 1fr, rom device 4) 5)
xc866 electrical parameters data sheet 98 v1.1, 2006-12 table 39 power supply current parameters (operating conditions apply; v ddp = 3.3v range) parameter symbol limit values unit test condition remarks typ. 1) 1) the typical i ddp values are periodically measured at t a =+25 c and v ddp =3.3v. max. 2) 2) the maximum i ddp values are measured under worst case conditions ( t a = + 125 c and v ddp =3.6v). v ddp = 3.3v range active mode i ddp 21.5 23.3 ma 3) 3) i ddp (active mode) is measured with: cpu clock and input clock to all peripherals running at 26.7 mhz(set by on-chip oscillator of 10 mhz and ndiv in pll_con to 0010 b ), reset = v ddp , no load on ports. idle mode i ddp 16.4 18.9 ma xc866-4fr, xc866-2fr 4) 4) i ddp (idle mode) is measured with: cpu clock disabled, watchdog timer disabled, input clock to all peripherals enabled and running at 26.7 mhz, reset = v ddp , no load on ports. 11.2 13.5 ma xc866-1fr, rom device 4) active mode with slow-down enabled i ddp 6.8 8 ma xc866-4fr, xc866-2fr 5) 5) i ddp (active mode with slow-down mode) is measured with: cpu clock and input clock to all peripherals running at 833 khz by setting clkrel in cmcon to 0101 b , reset = v ddp , no load on ports. 5.4 7.3 ma xc866-1fr, rom device 5) idle mode with slow-down enabled i ddp 6.8 7.8 ma xc866-4fr, xc866-2fr 6) 6) i ddp (idle mode with slow-down mode) is measured with: cpu clock disabled, watchdog timer disabled, input clock to all peripherals enable and running at 833 khz by setting clkrel in cmcon to 0101 b ,, reset = v ddp , no load on ports. 4.9 6.9 ma xc866-1fr, rom device 6)
xc866 electrical parameters data sheet 99 v1.1, 2006-12 table 40 power down current (operating conditions apply; v ddp = 3.3v range ) parameter symbol limit va lues unit test condition remarks typ. 1) 1) the typical i pdp values are measured at v ddp =3.3v. max. 2) 2) the maximum i pdp values are measured at v ddp =3.6v. v ddp = 3.3v range power-down mode 3) 3) i pdp (power-down mode) has a maximum value of 200 a at t a = + 125 c. i pdp 110a t a =+25 c. 4) 4) i pdp (power-down mode) is measured with: r eset = v ddp , v agnd = v ss , rxd/int0= v ddp ; rest of the ports are programmed to be input with either internal pull de vices enabled or driven externally to ensure no floating inputs. -30a t a =+85 c, xc866- 4fr, xc866-2fr 4) 5) 5) not subject to production test, ve rified by design/characterization. -35a t a =+85 c, xc866- 1fr, rom device 4) 5)
xc866 electrical parameters data sheet 100 v1.1, 2006-12 4.3 ac parameters 4.3.1 testing waveforms the testing waveforms for rise/fall time, output delay and output high impedance are shown in figure 38 , figure 39 and figure 40 . figure 38 rise/fall time parameters figure 39 testing waveform, output delay figure 40 testing waveform, output high impedance 10% 90% 10% 90% v ss v ddp t r t f v dde / 2 te st p o in ts v dde / 2 v ss v ddp v load + 0.1 v v oh - 0.1 v timing reference points v load - 0.1 v v ol - 0.1 v
xc866 electrical parameters data sheet 101 v1.1, 2006-12 4.3.2 output rise/fall times figure 41 rise/fall times parameters table 41 output rise/fall times parameters (operating conditions apply) parameter symbol limit values unit test conditions min. max. v ddp = 5v range rise/fall times 1) 2) 1) rise/fall time measurements are taken with 10% - 90% of the pad supply. 2) not all parameters are 100% tested, but are verified by design/characterization and test correlation. t r , t f ? 10 ns 20 pf. 3) 3) additional rise/fall time valid for c l = 20pf - 100pf @ 0.125 ns/pf. v ddp = 3.3v range rise/fall times 1) 2) t r , t f ? 10 ns 20 pf. 4) 4) additional rise/fall time valid for c l = 20pf - 100pf @ 0.225 ns/pf. t r 10% 90% 10% 90% t f v ss v ddp
xc866 electrical parameters data sheet 102 v1.1, 2006-12 4.3.3 power-on reset and pll timing table 42 power-on reset and pll timing (operating conditions apply) figure 42 power-on reset timing parameter symbol limit values unit test conditions min. typ. max. pad operating voltage v pad cc 2.3 ? ? v on-chip oscillator start-up time t oscst cc ??500ns flash initialization time t finit cc ? 160 ? s reset hold time 1) 1) reset signal has to be active (low) until v ddc has reached 90% of its maximum value (typ. 2.5v). t rst sr ? 500 ? s v ddp rise time (10% ? 90%) 500s pll lock-in in time t lock cc ? ? 200 s pll accumulated jitter d p ??0.7ns 2) 2) pll lock at 80 mhz using a 4 mhz external oscillator. the pll divider settings are k = 2, n = 40 and p = 1. vddp pads vddc v pad osc t oscst pll res et initialization ready to read flash state pll unlock pll lock 1) 2) 3) t lock t finit 1)pad state undefined 2)enps control 3)as programmed i)until evr is stable ii)until pll is locked iii) until flash go to ready-to-read iv) cpu reset is released; boot rom software begin execution reset t rst
xc866 electrical parameters data sheet 103 v1.1, 2006-12 4.3.4 on-chip oscillator characteristics table 43 on-chip oscillator characteri stics (operating conditions apply) parameter symbol limit va lues unit test conditions min. typ. max. nominal frequency f nom cc 9.75 10 10.25 mhz under nominal conditions 1) after ifx-backend trimming 1) nominal condition: v ddc =2.5v, t a =+25 c. long term frequency deviation 2) 2) not all parameters are 100% tested, but are verified by design/characterization and test correlation. ? f lt cc -5.0 ? 5.0 % with respect to f nom , over lifetime and temperature ( ? 10 c to 125 c), for one device after trimming -6.0 ? 0 % with respect to f nom , over lifetime and temperature ( ? 40 c to -10 c), for one device after trimming short term frequency deviation ? f st cc -1.0 ? 1.0 % with respect to f nom , within one lin message (<10 ms .... 100 ms)
xc866 electrical parameters data sheet 104 v1.1, 2006-12 4.3.5 jtag timing table 44 tck clock timing (operating conditions apply; c l = 50 pf) figure 43 tck clock timing parameter symbol limits unit min max tck clock period t tck sr 50 ? ns tck high time t 1 sr 20 ? ns tck low time t 2 sr 20 ? ns tck clock rise time t 3 sr ? 4 ns tck clock fall time t 4 sr ? 4 ns tck t 4 0.9 v ddp t 3 t 1 0.1 v ddp t 2 t tck 0.5 v ddp
xc866 electrical parameters data sheet 105 v1.1, 2006-12 table 45 jtag timing (operating conditions apply; c l =50 pf) figure 44 jtag timing parameter symbol limits unit min max tms setup to tck t 1 sr 8.0 ? ns tms hold to tck t 2 sr 5.0 ? ns tdi setup to tck t 1 sr 11.0 ? ns tdi hold to tck t 2 sr 6.0 ? ns tdo valid output from tck t 3 cc ? 23 ns tdo high impedance to valid output from tck t 4 cc ? 26 ns tdo valid output to high impedance from tck t 5 cc ? 18 ns tms tdi tck tdo t 1 t 2 t 1 t 2 t 4 t 3 t 5
xc866 electrical parameters data sheet 106 v1.1, 2006-12 4.3.6 ssc master mode timing table 46 ssc master mode timing (operating conditions apply; c l = 50 pf) figure 45 ssc master mode timing parameter symbol limit values unit min. max. sclk clock period t 0 cc 2*t ssc 1) 1) t sscmin =t cpu =1/f cpu . when f cpu = 26.7mhz, t 0 = 74.9ns. t cpu is the cpu clock period. ?ns mtsr delay from sclk t 1 cc 0 8 ns mrst setup to sclk t 2 sr 22 ? ns mrst hold from sclk t 3 sr 0 ? ns ssc_tmg1 sclk 1) mtsr 1) t 1 t 1 mrst 1) t 3 data valid t 2 t 1 1) this timing is based on the following setup: con.ph = con.po = 0. t 0
xc866 package and reliability data sheet 107 v1.1, 2006-12 5 package and reliability 5.1 package parameters (pg-tssop-38) table 47 provides the thermal char acteristics of the package. table 47 thermal characteristics of the package parameter symbol limit values unit notes min. max. thermal resistance junction case 1) 1) the thermal resistances between the case and the ambient (r tca ) , the lead and the ambient (r tla ) are to be combined with the thermal resistances between the junction and the case (r tjc ), the junction and the lead (r tjl ) given above, in order to calculate the total t hermal resistance between the junction and the ambient (r tja ). the thermal resistances between the case and the ambient (r tca ), the lead and the ambient (r tla ) depend on the external system (pcb, case) charac teristics, and are under user responsibility. the junction temperature can be calculated using the following equation: t j =t a +r tja p d , where the r tja is the total thermal resistance between the junction and the ambient. this total junction ambient resistance r tja can be obtained from the upper four partial thermal resistances, by a) simply adding only the two thermal resistances (junction lead and lead ambient), or b) by taking all four resistances into account, depending on the precision needed. r tjc cc ? 15.7 k/w ? thermal resistance junction lead 1) r tjl cc ? 39.2 k/w ?
xc866 package and reliability data sheet 108 v1.1, 2006-12 5.2 package outline figure 46 pg-tssop-38-4 package outline
xc866 package and reliability data sheet 109 v1.1, 2006-12 5.3 quality declaration table 48 shows the characteristics of the quality parameters in the xc866. table 48 quality parameters parameter symbol limit values unit notes min. max. esd susceptibility according to human body model (hbm) v hbm ? 2000 v conforming to eia/jesd22- a114-b esd susceptibility according to charged device model (cdm) pins v cdm ? 500 v conforming to jesd22-c101-c
http://www.infineon.com published by infineon technologies ag


▲Up To Search▲   

 
Price & Availability of SAF-XC866L-4RRA

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X